Skip to content

Instantly share code, notes, and snippets.

@jackmccloy
Created July 20, 2016 16:27
Show Gist options
  • Save jackmccloy/f50b32a468bf9733b2c8adf67c103162 to your computer and use it in GitHub Desktop.
Save jackmccloy/f50b32a468bf9733b2c8adf67c103162 to your computer and use it in GitHub Desktop.
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