Skip to content

railslove/rails-ssr-react-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2e61666 Â· Dec 9, 2019

History

18 Commits
Oct 29, 2019
Oct 23, 2019
Oct 29, 2019
Oct 23, 2019
Oct 29, 2019
Oct 23, 2019
Oct 23, 2019
Oct 23, 2019
Oct 23, 2019
Oct 23, 2019
Oct 23, 2019
Oct 23, 2019
Oct 23, 2019
Oct 23, 2019
Oct 23, 2019
Dec 9, 2019
Dec 9, 2019
Oct 24, 2019
Oct 23, 2019
Oct 24, 2019
Oct 23, 2019
Oct 23, 2019
Oct 29, 2019
Oct 23, 2019
Oct 29, 2019

Repository files navigation

Demo of Rails with server-side rendered React

Demo project to use React components as Rails views with react-rails and webpacker.

Supports

Currently work in progress. See Issues for current progress.

  • React components inside app/views/
  • Locals are passed into views as props
  • Automatic code splitting for each view
  • Client hydration of server rendered components
  • css-in-js with styled-components
  • Slightly better error stacks of SSR errors
  • ...

Setup

  • ruby 2.6.4
  • node >= 13.0.0
$ git clone
$ bundle install
$ yarn install
$ ./bin/webpack-dev-server
$ rails s

with 💚 from Railslove