Created
May 22, 2017 20:38
-
-
Save Louiefigz/60a75ee53afa3467721d893fbfb3fca7 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 App from './App'; | |
// Require the Provider library from react-redux below. | |
import { Provider } from 'react-redux'; | |
// createStore is replacing the manual createStore that we've created in the | |
// previous lab. | |
import { createStore } from 'redux'; | |
// Let's wrap our App component with Provider. | |
// Remember, Provider is going to be rendering our App Component if our state has | |
// changed. | |
ReactDOM.render( | |
<Provider> | |
<App /> | |
</Provider>, | |
document.getElementById('root')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment