Answer the question
In order to leave comments, you need to log in
How to anchor links?
We have a spa site. As planned by the designer, when we are on the main page, some route links behave like anchors, without moving to another page.
And another case, when you are, for example, on the contacts page, when you click on the terms page, the route jumps to the main page and anchors on terms ..
Do I understand correctly that this is a gesture?
Answer the question
In order to leave comments, you need to log in
There are many solutions. The link has onClick, the component has componentDidMount. There are also ready-made solutions like react-router-hash-link
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question