IryDev• 1,580
@IryDev
Posted
Hi @ArjunJayakrishnan, you did a great job on this challenge 😁
I think you can use the map method with react in order to don't repeat yourself in the navigation components or when you use nav-link :
{links.map((link, index) => (
<li key={index}>
<NavLink onClick={updateMenu} to={link.to}>
<span>0{index}</span> {link.name}
</NavLink>
</li>
))}
I hope you'll find this helpful, and your solution is really good 😄
Marked as helpful
0