You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs give incorrect usage for the BrowserRouter tag. A self-closing tag as seen in the docs will have no effect. You need to wrap your BrowserRouter tag around all your Links and other routing tags for it to have an effect. See here:
I think that the idea with that documentation is that the Link is a child somewhere or the BrowserRouter, but a PR to make this change would be appreciated.
The docs give incorrect usage for the BrowserRouter tag. A self-closing tag as seen in the docs will have no effect. You need to wrap your BrowserRouter tag around all your Links and other routing tags for it to have an effect. See here:
https://reacttraining.com/react-router/web/api/BrowserRouter/basename-string
The example as given is wrong:
This will not render href="/calendar/today" as stated. It will render href="/today".
The example should read:
The text was updated successfully, but these errors were encountered: