- Issue created by @effulgentsia
- πΊπΈUnited States effulgentsia
I looked into this some, and I think the best way to implement SSR/RSC support is to use the React frameworks that provide all of the foundations for that. From the little research I've done for this, I think the current best React frameworks are:
- Next.js for an RSC architecture.
- Remix for an SSR/hydration architecture.
I think it would be great to eventually have demo apps that show how Drupal and this theme engine can integrate with both of those excellent frameworks, so I opened a child issue for each: #3396649: Add a demo Next.js app and subtheme β and #3396654: Add a demo Remix app and subtheme β .
I think there's security benefits to RSC by not sending the template variables (Drupal component props) to the browser, so I think we should do #3396649: Add a demo Next.js app and subtheme β first.
I think we could also implement a security model that works well for Remix, by writing our own code to partially execute the Drupal components on the server only, and meanwhile there might be some unique benefits to Remix, and I think it would be great to demonstrate that this theme engine can work well with multiple frameworks, so if/when there's time it would be great to do #3396654: Add a demo Remix app and subtheme β .
Changing this to a Plan issue, since it doesn't need any implementation beyond the two child issues.
- Status changed to Closed: outdated
over 1 year ago 9:49pm 16 February 2024 - πΊπΈUnited States effulgentsia
Closing this because I think the child issues stand on their own and we don't need this separate Plan issue.