Interesting to see Rails simultaneously embracing React with the Webpacker gem while also trying to offer a better solution in Turbolinks + Stimulus.
DHH's complaints here about React (and Redux especially) resonate with me, but I have a hard time believing a React-less approach is the best solution. I'd rather Rails roll its own enhancement of Redux - and perhaps CSS management - alongside a handful of component generators that make everything from "Javascript sprinkles" to SPAs easier to manage in Rails.
Webpacker is not about React, but about using a modern asset bundler (Webpack) and ease modern JS development for Rails users (Babel, …). There is a generator to easily setup React, Vue and some major JS frameworks, but those are very basic and optional.
Comments
Interesting to see Rails simultaneously embracing React with the Webpacker gem while also trying to offer a better solution in Turbolinks + Stimulus.
DHH's complaints here about React (and Redux especially) resonate with me, but I have a hard time believing a React-less approach is the best solution. I'd rather Rails roll its own enhancement of Redux - and perhaps CSS management - alongside a handful of component generators that make everything from "Javascript sprinkles" to SPAs easier to manage in Rails.
Webpacker is not about React, but about using a modern asset bundler (Webpack) and ease modern JS development for Rails users (Babel, …). There is a generator to easily setup React, Vue and some major JS frameworks, but those are very basic and optional.