react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

Can Link component be given an href for the purposes of SEO?

Open atorcode opened this issue 2 years ago • 3 comments

I'm using the Link component for navbar links. I guess these don't set an href attribute so my lighthouse report is showing that they're bad for SEO. Anyone know the best way around this?

atorcode avatar Aug 20 '23 03:08 atorcode

Currently, I'm resorting to creating an additional anchor element for each Link component just for crawlability, and then hiding them from users and screen readers.

atorcode avatar Aug 22 '23 22:08 atorcode

@atorcode running into similar issues. Curious how you set metadata descriptions for each of those anchors. Just more hidden text?

F1L1 avatar Oct 03 '23 17:10 F1L1

I think for the sake of SEO you can use Button instead of Link. Just add some CSS to remove appearance and border and you are good to go.

jodaka avatar Mar 26 '24 17:03 jodaka