Fazza Razaq Amiarso• 2,360
@fazzaamiarso
Posted
Hi Shajed! Great work!
I have a quick tip for you. You can improve your conditionals in components/nav
like this.
const isActive = pathname === url
return (
<NavList key={id} active={isActive}>
<span>0{index}</span>
<Link to={url}>{text}</Link>
</NavList>
);
I hope it helps! Cheers!
Marked as helpful
0
shajed• 730
@shaj-ed
Posted
@fazzaamiarso thanks for your feedback!
0