Integrating React.js with Rails Using Hyperloop

suggest change

Versions

Rails 4.0 through 5.0

Introduction

This topic covers integrating React.js with Rails using the Hyperloop gem

Other approaches not covered here are using the react-rails or react_on_rails gems.

Remarks

Component classes generate the equivalent JavaScript component classes.

You can also access JavaScript components and libraries from your Ruby component classes.

Hyperloop prerenders the view on the server, so the first response looks like an ERB or Haml template. In the browser, React updates the DOM as state changes from user input, HTTP requests, or websocket data.

Besides Components, Hyperloop has Stores to manage shared state, Operations to encapsulate isomorphic business logic, and Models which give direct access to your ActiveRecord models on the client using the standard AR syntax.

More info here: http://ruby-hyperloop.io/

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents