SEO
chrisvrose opened this issue · 0 comments
chrisvrose commented
Summary
React does not work well with SEO (Search engine optimization)
Big problem
Process
The process of loading a website traditionally is:
- Receive HTML from site. It contains content that needs to be indexed.
- Retrieve needed scripts (js) and styling (css).
- Execute them.
The process for a React website is:
- Receive template html from site. There is no content, only a link to ReactJS
- React loads the content and styling and scripts
Why it is broken
There is no HTML content in react pages to be indexed. As a result, search engines that index sites can work poorly with React applications.
Importance
The primary places for any person to find any organization site is from:
- Posters
- Seeing someone else use it
Solutions
- SSR (Look at Next.JS)
- Analyze feasibility of switching away from HashRouter (Stay with traditional React)