React.js on Rails
summary
Argues that React lets Rails keep server rendering while adding only the JavaScript needed, demonstrates shipping a feature in an hour, and shows concrete tooling: react-rails gem for the view helper and UJS mounting, react-rails-assets to pull NPM/Bower libs into gems, and embracing JSX/ES6 rather than CoffeeScript. Builds a real-time comments container that polls every second, uses setState/getInitialState and virtual DOM diffs to update only the new rows, and shows a Services live app clock and chat working in production.
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:37Services
- 2:05BatmanJS
- 5:38Pull Request
- 7:13First Goal
- 7:33Second Goal
- 7:56What is React
- 8:15React Partials
- 9:42React Component
- 14:15React Comments Container
- 22:47React Rails Gem
- 25:13Asset Pipeline
- 26:24CoffeeScript
- 29:08Embrace JSX
- 30:08Outro
related talks
25m"React integration into existing Rails applications"
36mFront-End Sadness to Happiness: The React on Rails Story
31mReact on Rails
18mReact-ing to Rails: Why Ruby on Rails is the best Stop for Web Developer
07mBuilding Real-Time App with React/Redux/Rails/RethinkDB
47mActionCable, Rails API and React - Modern Single Page Apps
28mRethinking the View using React.js
33mOld-school Javascript in Rails
