reactive-python / reactpy-django

It's React, but in Python. Now with Django integration.
https://reactive-python.github.io/reactpy-django/
MIT License
322 stars 18 forks source link

SEO Compatible Rendering #186

Closed Archmonger closed 12 months ago

Archmonger commented 12 months ago

By submitting this pull request you agree that all contributions to this project are made under the MIT license.

Description

Checklist:

Please update this checklist as you complete each item:

Archmonger commented 12 months ago

@rmorshea BTW after a lot of testing, the most rational approach for this was to prerender in a separate div, then replace it with the actual render when possible. The prerendering step is performed entirely by the template tag.

Saves us from cross-process rehydration headaches, and is the most compatible solution across multiple backends.