Settings

Theme

Ask HN: How do you do on-site SEO (with meta elements) for your React apps

4 points by ogezi 6 years ago · 1 comment · 1 min read

Reader

I've been building React web apps for a brief while now. After seeing 2 of my pages rank on a Google search result page, I realised, somewhat belatedly that all my pages would have the same title, meta description, meta keywords, Open Graph and Twitter meta elements in the HTML header unless I had a way to change them on a case-by-case basis. What is the most straightforward way for me to handle this?

TechBro8615 6 years ago

You need react-helmet. If you’re using nextjs, you can use next-seo.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection