#How to use react-router-dom's `<Link>` with `Anchor`

5 messages · Page 1 of 1 (latest)

woven wren
#

I tried this:

<Link to={`/Home`} key={"/Home"} className='link'><Anchor>Home</Anchor></Link>

and removing all the styles from the .link class.

but then I got the warning:

Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>.
stone lagoon
woven wren
#

ahh, now I understand the purpose of that polymorphic thing

#

thanks