-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impoving react-router-config #5939
Comments
|
Instead of that I want something like this:
|
#5429 describes route without path, but with component. I want oposite of that. |
|
But why do I need to use it in other components? Why can't renderRoute render it by itself and pass rendered children to my component? |
Ah, I see what you are saying. The main issue is related to the refactor I mentioned. We're basically just wrapping a |
I have 2 features to propose:
Minus one dependency in component.
2. Render routes by itself if no component was passed
That will help if I configure router not in one file.
Files bar.js and baz.js export some routes structure.
The text was updated successfully, but these errors were encountered: