Transform "route Children" And "cloneelement" To Routerv4
I want to write a Router in React Project. But Route children and cloneElement work not anymore by Version 4. I haven't found demo or tutor to teach how to pass value in router in
Solution 1:
If you are looking to pass props to a component via a component, then you can use render, for example:
<Route exact path="/" render={(props) => <Player example={ props.example } /> }></Route>
Post a Comment for "Transform "route Children" And "cloneelement" To Routerv4"