Created
November 1, 2020 01:38
-
-
Save neomatrixcode/e4b04347bff5ab754ec3112869220f74 to your computer and use it in GitHub Desktop.
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 ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import reportWebVitals from './reportWebVitals'; | |
import { createStore } from 'redux' | |
import rootReducer from './reducers' | |
import { Provider } from 'react-redux' | |
// Creamos el store al pasar el reducer raiz | |
const store = createStore(rootReducer) | |
ReactDOM.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