Open
Description
Current Situation
Currently, sites built in ReactPy are not SEO compatible. This is a fairly common issue with JavaScript frameworks such as ReactJS.
Prior discussion: #486
Prior Issue: reactive-python/reactpy-django#93
Proposed Actions
To resolve this, there needs to be an initial HTTP render, followed by a JavaScript re-render.
It may be worth considering using Preact's hydrate API, but this would likely require ReactPy to have a database backend. However, a simpler design involves
- Use the template tag to render the initial component as raw HTML.
- When the JavaScript client requests it, re-render the component.