How to get your Rails data into your React component with webpacker
A quick tutorial on using Rails model data inside a React component, when using the webpacker gem. It works for versions of Rails 4.2 onwards.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
A quick tutorial on using Rails model data inside a React component, when using the webpacker gem. It works for versions of Rails 4.2 onwards.
Post a comment