Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

React does not recognize the `activeClassName` prop on a DOM element

<NavLink to="/home" className={(navData) => (navData.isActive ? "active-style" : 'none')}>Home</NavLink>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #React #recognize #prop #DOM #element
ADD COMMENT
Topic
Name
4+7 =