Skip to main content

useSetting

const setting: T = useSetting<T>(key: string);

useSetting returns a specific entry from Settings idenfified by key

Example

Get a property of settings.ts
examples/cra-examples/src/settings/UseSettingPage.tsx
loading...

Documentation

Inputs

VariableTypeDescription
keystringThe identifier of a field in the configuration object.

Outputs

VariableTypeDescription
settingTa specific entry from Settings idenfified by key