Skip to content

Instantly share code, notes, and snippets.

@simistern
Created August 13, 2016 00:33
Show Gist options
  • Save simistern/5c5bcaf857bba05b7a414a6bb66fa6f7 to your computer and use it in GitHub Desktop.
Save simistern/5c5bcaf857bba05b7a414a6bb66fa6f7 to your computer and use it in GitHub Desktop.
//So here is my container, remember from my description earlier? Those nested routes are the things i want to link in in the tabbed component
const App = ({ content }) => (
<div>
{App}
</div>
)
ReactDOM.render((
<Router history={hashHistory}>
<IndexRoute component={App}/>
<Route path="/" data={data} component={ProjectsView}/>
<Route path="/buildcompass" data={data} component={CompassBuilderView}>
<Route path="pinmap" data={data} component={PinMapTemplate} />
<Route path="textfield" data={data} component={TextfieldTemplate} />
<Route path="multiplechoice" data={data} component={MultipleChoiceTemplate} />
</Route>
</Router>
),document.getElementById('container')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment