UNPKG

resau

Version:

React 16.3's new [Context API](https://reactjs.org/docs/context.html) is very promising. Who knows that in the future we're no longer need the likes of Redux for our app's state management? For more information, [this article](https://medium.freecodecamp.

19 lines (16 loc) 462 B
import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./containers/App"; import { Router } from "react-router-dom"; import createHistory from "history/createBrowserHistory"; import StoreProvider from "./components/Context/Store"; const history = createHistory(); ReactDOM.render( <StoreProvider> <Router history={history}> <App /> </Router> </StoreProvider>, document.getElementById("root") );