I am currently using useNavigate from react-router-dom with Mantine's NavLink component
<NavLink key="1" label="Home" onClick={() => navigate('/')} />
I have read that it is better to use Link from react-router-dom for this sort of thing. What is the advised way to do this? I know with the Text component, you can just do
<Text component={Link}
But what about in NavLink. Should I do
<NavLink key="1" label="Home">
<Link to="/" />
</NavLink>
?