OverridableComponent

Oppdatert 20. mai 2022
const FancyLink = React.forwardRef(({ navigate, ...props }, ref) => {
return (
<Link ref={ref} {...props} onClick={handleClick}>
Home
</Link>
)
})
<Router.Link to="/" component={FancyLink} />
<Link as={Router.Link} to="/about" >About</Link>