Work with react-router's <Link> ?
See original GitHub issue<Link>
will be broken (like <a>
reload page) after glidify.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Link v6.6.1 - React Router
A <Link> is an element that lets the user navigate to another page by clicking or tapping on it. In react-router-dom , a...
Read more >How to handle navigation in your app with React Router Link
React Router is used for handling navigation state and keeping the UI in sync with the URL. It watches for changes in the...
Read more >React Router Tutorial – How to Render, Redirect, Switch, Link ...
To add the link in the menu, use the <NavLink /> component by react-router-dom . The NavLink component provides a declarative way to...
Read more ><Link> · React Router
The primary way to allow users to navigate around your application. <Link> will render a fully accessible anchor tag with the proper href....
Read more >Creating a Link Between Pages in React Router
Even though we're linking to /react, that gets silently rewritten by React Router to be /#/react, which means our current URLs all carry...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@RoberMac is right, I also tried an it works that way. Should we submit a PR @jedrzejchalubek?
Simply put,
<Link>
component actually is a<a>
with attached event (likeonclick
), butAnchors
module seems stopPropagation, so<Link>
's event handler may not be fired. I remove the line ofstopPropagation
then it works too.