Created
June 26, 2020 20:36
-
-
Save haimrait/b25b69d1a874babece0db1954a6e044b 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 { createStore, applyMiddleware } from 'redux'; | |
import { Provider } from 'react-redux'; | |
import thunk from 'redux-thunk'; | |
import { App } from './components/App'; | |
import { reducers } from './reducers'; | |
const store = createStore(reducers, applyMiddleware(thunk)); | |
ReactDOM.render( | |
<Provider store={store}> | |
<App /> | |
</Provider>, | |
document.querySelector('#root') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment