We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now if you want to provide additional props to a child route you need to clone it, leading to code like this:
class App extends Component { render () { return ( <div> {React.cloneElement(this.props.children, { anotherProp: 'foo' })} </div> ) } }
It would be much nicer IMO to have a <RouteHandler /> component like they do in react-router:
<RouteHandler />
class App extends Component { render () { return ( <div> <RouteHandler anotherProp='foo' /> </div> ) } }
This should be pretty easy to achieve. The RouteHandler component would look something like this:
class RouteHandler extends Component { static childContextTypes = { routes: PropTypes.array } static contextTypes = { routes: PropTypes.array } getChildContext () { return { routes: routes.slice(1) } } render () { return this.context.routes[0] } }
Thoughts @KidkArolis ?
The text was updated successfully, but these errors were encountered:
Cleaning up issues of a bunch of repos.
Sorry, something went wrong.
No branches or pull requests
Right now if you want to provide additional props to a child route you need to clone it, leading to code like this:
It would be much nicer IMO to have a
<RouteHandler />
component like they do in react-router:This should be pretty easy to achieve. The RouteHandler component would look something like this:
Thoughts @KidkArolis ?
The text was updated successfully, but these errors were encountered: