Skip to content

Instantly share code, notes, and snippets.

@mobinni
Last active December 16, 2015 19:58
Show Gist options
  • Save mobinni/828245d46efdf52bfa3b to your computer and use it in GitHub Desktop.
Save mobinni/828245d46efdf52bfa3b to your computer and use it in GitHub Desktop.
A Modern Isomorphic Stack with Redux - Part 1
// Your main stylesheet
import '../styles/general/styles.scss';
// Modules
import React from 'react';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory'
import Router from 'react-router';
import routes from './routes';
const history = createBrowserHistory();
ReactDOM.render(
<Router history={history}
routes={routes}/>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment