-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link don't works #449
Comments
May you please |
sorry the code is wrong this not working:
and this is what I do to fix them:
|
I'm glad you solved! |
It means that you going to add this code to your Link component? =D |
I'm not a collaborator! But i wanted to help :) |
In your second code which is working for you why are you even using navigate from reach router? Its a direct link with a tag with href. You dont need onclick on a tag with href. You are intercepting the link with onclick, preventing default behaviour and using navigate executing the default behaviour. In the first example link should work. Are you using gatsby or react? In gatsby if you link to non existent page it will show 404 page. But you said it does nothing so I assume you are using react. You should check if you have a component for path |
Hi, I'm using Link component to navigate but not working, the uri change, the path change but the view do nothing, I'm using react 17+
The text was updated successfully, but these errors were encountered: