5.0.1
https://codesandbox.io/s/a-simple-react-router-v4tutorial-bnwby
I've set components/Header.js second link as function. Click on the second link in the header ("Roster")
It should go to the route.
It does not go to the route with an error in the console.
Warning: Failed prop type: Invalid prop `to` supplied to `Link`.
The error is shown even when the page is loaded.
OK. I was checking the repo, but I didn't realized this commit is not in the release yet.
Yes, sorry! Currently the way that this repo works is that PRs get merged into master; we don't have a dev-type branch for unreleased code. This means that when the documentation site gets built, it can include unreleased API. This isn't good and hopefully a process gets worked out to prevent this sort of issue.
When do you plan to released that?
Also I find it convenient to use that function to put in a side-effect of scrolling to the top. What do you think of that usage? @pshrmn
I also discovered this feature in the docs, and it is a really nice feature. Any chance that it is released early?
Most helpful comment
I also discovered this feature in the docs, and it is a really nice feature. Any chance that it is released early?