Embedding react-boilerplate in Rails 5.1
Asked Answered
H

1

24

Has anyone tried integrating react-boilerplate into a Ruby on Rails 5.1 app? It looks like the 5.1 approach to embedding React components in views is fairly simple. Rails 5.1 is using webpacker which has its approach to mixing Ruby configuration with Webpack. It doesn't seem very straightforward, but does anyone have any techniques for accomplishing this?

Hone answered 31/3, 2017 at 9:52 Comment(2)
"integrating" is not very clear. What are you trying to accomplish?Sethrida
Basically using the new approach of putting components in app/assets but with all of Redux , Saga, and Router included in React boilerplate.Hone
B
1

Take a look at rails-react-boilerplate. The README.md should have all the info you need to get up and running. You should be able to easily find it on github.

Blader answered 12/6, 2017 at 13:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.