import React from 'react'; import { render } from 'react-dom'; import { Router, Route, Redirect, IndexRoute, browserHistory } from 'react-router'; import { App } from '../../ui/layouts/app'; import { Documents } from '../../ui/pages/documents'; import { Index } from '../../ui/pages/index'; import { Login } from '../../ui/pages/login'; import { NotFound } from '../../ui/pages/not-found'; import { RecoverPassword } from '../../ui/pages/recover-password'; import { ResetPassword } from '../../ui/pages/reset-password'; import { Signup } from '../../ui/pages/signup'; const requireAuth = (nextState, replace) => { if (!Meteor.loggingIn() && !Meteor.user()) { replace({ pathname: '/login', state: { nextPathName: nextState.location.pathname }, }); } }; Meteor.startup(() => { render( , document.getElementById('react-root') ); });