Demo project to use React components as Rails views with react-rails and webpacker.
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
- ...
- ruby
2.6.4
- node
>= 13.0.0
$ git clone
$ bundle install
$ yarn install
$ ./bin/webpack-dev-server
$ rails s
with 💚 from Railslove