Hi, did i need to add onclick event in all the li i had? is there any better to do this?
<li onClick={onClick()}></li>
<li onClick={onClick()}></li>
<li onClick={onClick()}></li>
<li onClick={onClick()}></li>
<li onClick={onClick()}></li>
<li onClick={onClick()}></li>