Created
July 24, 2019 18:50
-
-
Save maximiliangonzalez/b18cd27b02794b65963432eb4a50ed2f to your computer and use it in GitHub Desktop.
The top layer of our React app, wrapped in a Provider so we can access the counter in our Redux store.
This file contains 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 {render} from 'react-dom'; | |
import App from './components/App.jsx'; | |
import {Provider} from 'react-redux'; | |
import store from './reducers/counterReducer'; | |
render( | |
<Provider store={store}> | |
<App /> | |
</Provider>, | |
document.getElementById('root') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment