Created
August 13, 2016 00:33
-
-
Save simistern/5c5bcaf857bba05b7a414a6bb66fa6f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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