1

Could anyone share some light on why this Router configuration doesn't want to render the Project component while trying to access to/design/project/whatever?

<Route path="/" component={MainWrapper}>
  <Route path="to/design/" component={Design}>
    <Route path="project/:id" component={Project} />
  </Route>
  <Route path="to/code" component={Code} />
</Route>

Thanks for your time!

2
  • Do you get any error in console? Can you provide the code for Project component? Commented Mar 21, 2016 at 17:50
  • add some more details like console log, and index files Commented Mar 21, 2016 at 17:56

1 Answer 1

1

I simply forgot to specify the {this.props.children} inside the Design component.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.