createContext
Create a new context. The default value is optional.
createContext(defaultValue?): Context<T>
Create a new context. The default value is optional.
Parameter | Type | Optional | Description |
---|---|---|---|
defaultValue | T | ✅ | The default value of the context |
Create a new context. The default value is optional.
Create a new context. The default value is optional.
Parameter | Type | Optional | Description |
---|---|---|---|
defaultValue | T | ✅ | The default value of the context |