Advertisement
arxeiss

react router

May 20th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ReactDOM.render(
  2.         <ReactRouter.Router history={ReactRouter.browserHistory}>
  3.             <ReactRouter.Route path="/" component={App}>
  4.                 <ReactRouter.Route path="/campaigns" component={RouterWrapper}>
  5.                     <ReactRouter.IndexRoute component={Campaigns} />
  6.                     <ReactRouter.Route path="/campaigns/:campaignId(/execution/:executionId)" component={CampaignExecutions}/>
  7.                 </ReactRouter.Route>
  8.                 <ReactRouter.Route path="/templates" component={Templates}/>
  9.                 <ReactRouter.Route path="/attachments" component={Attachments}/>
  10.             </ReactRouter.Route>
  11.         </ReactRouter.Router>
  12.         ,
  13.         document.getElementById('reactContainer')
  14.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement