-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Description
Hey guys!
Amazing work on v6. Just spent the last few hours toying around and converting a few things. Made so many things so much easier!
Two things as I was messing around and looking through the code:
-
The component's "to" prop seems different? Instead passing an object like this
props={pathname: '/home', state: {cool: true}} <Link to={props}>Link</Link>
I have to do this:
props={to: '/home', state: {cool: true}} <Link {...props}>Link</Link> -
It seems like the "location" prop from the Switch component is gone with Routes. If so, how would I implement a pattern like this?
https://reacttraining.com/react-router/web/example/modal-gallery
lukereative, tconroy, mdingena, albehrens, shwao and 9 more
Metadata
Metadata
Assignees
Labels
No labels