Provider

React context provider used to expose a Store to all components in your app.

Usage

import App from "./App";
import { model } from "./model";
const { Provider } = model.createStore({
initState: {
count: 0
}
});
ReactDOM.render(
<Provider>
<App />
</Provider>,
document.getElementById("root"),
);