import React from 'react'; import ReactDOM from 'react-dom'; import Router, {Route} from 'react-router'; import AuthenticatedApp from './components/AuthenticatedApp' import Login from './components/Login'; import Signup from './components/Signup'; import Home from './components/Home'; import Account from './components/Account'; import Tx from './components/Tx'; import RouterContainer from './services/RouterContainer'; import LoginActions from './actions/LoginActions'; var routes = ( ); var router = Router.create({routes}); RouterContainer.set(router); let jwt = localStorage.getItem('jwt'); if (jwt) { LoginActions.loginUser(jwt); } router.run(function (Handler) { ReactDOM.render(, document.getElementById('content')); });