Answer the question
In order to leave comments, you need to log in
How to make active link in react?
There is a site header with a number of links. To make a link active, you can write the following code to it:
<NavLink className={ ({isActive}) => isActive ? "link link--active" : "link" } to="/...">Ссылка</NavLink>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question