Provides sub components with the DataContext, which allow connecting to the
Store implementation. You can create your own provider if needed, but it will need to
provide an implementation of the DataContext.
Components should use the useData hook to access the store. Generator functions
will have the store injected by the GeneratorsProvider provider component.
Provides sub components with the
DataContext
, which allow connecting to theStore
implementation. You can create your own provider if needed, but it will need to provide an implementation of theDataContext
.Example
Remarks
Components should use the
useData
hook to access the store. Generator functions will have the store injected by theGeneratorsProvider
provider component.See