Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created October 20, 2017 18:33
Show Gist options
  • Save tkssharma/09689b4ed0d43392255a7ea44f1f645c to your computer and use it in GitHub Desktop.
Save tkssharma/09689b4ed0d43392255a7ea44f1f645c to your computer and use it in GitHub Desktop.
import * as Action from 'app/redux/actions';
const RegisterPage = asyncComponent(() =>
import('app/ui/auth/Register').then(module => module.default)
)
const LoginPage = asyncComponent(() =>
import('app/ui/auth/Login').then(module => module.default)
)
AdminFormComponent from 'app/components/dashboard/formPage';
render((
<Provider store={store}>
<Router history={hashHistory}>
<Route path="login" component={LoginPage}/>
<Route path="register" component={RegisterPage}>
</Router>
</Provider>
), document.getElementById("app"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment