Created
July 20, 2016 16:27
-
-
Save jackmccloy/f50b32a468bf9733b2c8adf67c103162 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 {Provider} from 'react-redux'; | |
import {ReduxRouter} from 'redux-router'; | |
import configureStore from './store/configureStore'; | |
const store = configureStore(); | |
const AppRoot = require('./AppRoot'); | |
class RootElement extends React.Component { | |
static displayName = 'RootElement'; | |
render() { | |
return ( | |
<Provider store={store}> | |
<ReduxRouter routes={AppRoot} /> | |
</Provider> | |
); | |
} | |
} | |
ReactDOM.render(<RootElement />, | |
document.getElementById('react-app') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment