Last active
June 8, 2019 21:51
-
-
Save cevr/1375a80c0fedaf91cb9353e6dfd2eb62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { StoreProvider, createStore } from 'easy-peasy'; | |
import model from './model'; | |
import App from './App'; | |
const store = createStore(model); | |
function Root() { | |
return ( | |
<StoreProvider store={store}> | |
<App /> | |
</StoreProvider> | |
); | |
} | |
const rootElement = document.getElementById('root'); | |
ReactDOM.render(<Root />, rootElement); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment