Function DataProvider

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.

<DataProvider store={store}>
{ ... }
</DataProvider>

Components should use the useData hook to access the store. Generator functions will have the store injected by the GeneratorsProvider provider component.