I have the following situation in the main component
<Link href={'test'}>
<PrimaryAnchor>Welcome</PrimaryAnchor>
</Link>
in PrimaryAnchor component
const PrimaryAnchor = forwardRef(function PrimaryAnchor({ children, extraClass = '', ...props }, ref) {
return (
<a className={`primary-btn ${extraClass}`} {...props}>
<div></div>
<div></div>
<div></div>
{children}
</a>
)
});
What I want is to have the href tag from Link inside the tag from the Primary component.
Do you have any suggestions?
Thanks