Hey folks!
TLDR: Preview the future of React SSR in Rails apps today, give us your beautiful feedback gifts ;)
The Web Foundation team has some new tools we're ready for teams to put it through their paces during hack days. Over the last few weeks we’ve been working away at pushing the boundaries of our support for Rails+React apps, and one the major fruits of this endeavor has been a brand new first-class pattern for Server-Side-Rendering React in Rails applications. We’ve written a handy new guide for getting setup from scratch, a gem with a built-in generator and a ready-to-install embedded app sample application.
As you may expect, though we are confident that this approach is the right choice going forward, this is still early days for the pattern so pop into #web-foundation-tech for support with whatever issues you may have.
We encourage you to try out SSR in your Rails+React hackdays project, but even if you stick with Client-Side-Rendering, you’ll find improved support with the new sewing-kit doctor
command to help debug misconfigurations, automatic CDN uploads, massive reductions in the minimum boilerplate for things like testing, vendor bundles and other common features, and more!
Helpful Links:
- [cloud-platform walkthrough] https://docs.shopifycloud.com/getting_started/rails-with-node-walkthrough
- [quilt_rails gem] https://github.com/Shopify/quilt/tree/master/gems/quilt_rails
- [example repo (embedded app)] https://github.com/Shopify/web-rails-proving-ground/
- [self-serializers package] https://github.com/Shopify/quilt/tree/master/packages/react-self-serializers
Also, TL;DR goes at the top, not the bottom :P