Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react-router-dom navlink active

<NavLink
  to="users"
  className={({ isActive }) => (isActive ? 'active' : 'inactive')}
>
  Users
</NavLink>
Source by ultimatecourses.com #
 
PREVIOUS NEXT
Tagged: #navlink #active
ADD COMMENT
Topic
Name
3+6 =