Tutorial by Examples

Place a file like the following in your top level directory. It defines which components to render for which paths import React from 'react'; import { Route, IndexRoute } from 'react-router'; import New from './containers/new-post'; import Show from './containers/show'; import Index from './c...
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Index from './containers/home'; import App from './components/app'; //for single Component lazy load use this const ContactComponent = () => { return { getComponent: (location, callback)=> { ...

Page 1 of 1