DEV Community

Discussion on: Five common mistakes writing react components (with hooks) in 2020

Collapse
 
pabloabc profile image
Pablo Berganza

Ideally yes. You'd have to style the anchor tag to look like a button. It's considered bad practice to have an interactive element inside of another (a.k.a button inside an anchor, anchor inside another anchor, etc).