Created
November 14, 2019 08:09
-
-
Save darksh3ll/b02ad2f5bb9fd9fc4a24c8526a32d235 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 './index.css' | |
import App from './App' | |
import { createStore, combineReducers } from 'redux' | |
import { Provider } from 'react-redux' | |
import * as serviceWorker from './serviceWorker' | |
import languageReducer from './store/languageReducer' | |
const store = createStore( | |
combineReducers({ | |
languageReducer, | |
}), window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() | |
) | |
ReactDOM.render( | |
<Provider store={store}> | |
<App /> | |
</Provider> | |
, document.getElementById('root')) | |
serviceWorker.unregister() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment