useContext
Get the current value of the context. If the context is lost and no default value is provided, undefined will be returned.
useContext(context): T | undefined
Get the current value of the context. If the context is lost and no default value is provided, undefined will be returned.
Parameter | Type | Optional | Description |
---|---|---|---|
context | Context<T> | ❌ | The context to get the value from |