Answer the question
In order to leave comments, you need to log in
Is it possible to somehow group elements with the same parameters in React?
There are multiple JSX elements with the same parameter part:
<NavLink to='/stats' activeClass="active" activeStyle={{fontWeight: "bold"}}>Stats</NavLink>
<NavLink to='/home' activeClass="active" activeStyle={{fontWeight: "bold"}}>Home</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