2 ms·
Rails 5 already has webpack support and React support. https://github.com/rails/webpacker https://github.com/rails/webpacker https://github.com/reactjs/react-r
by benbristow 8y ago
Rails 5 already has webpack support and React support.
https://github.com/rails/webpacker https://github.com/rails/webpacker
https://github.com/reactjs/react-rails https://github.com/reactjs/react-rails
Can use it pretty much fully in place of the asset pipeline.
Can use standard ERB and spice it up with React using a simple tag with the component name and props as a hash.