React On Rails without webpack using HTM

I’m working upgrading to Rails 7 the Import Map way - getting rid of webpack.

I’m interested in using the HTM (Hyperscript Tagged Markup) solution demo’d by DHH here: Alpha preview: Using React with importmaps on Rails 7 - YouTube

React On Rails would still be super helpful in providing view helpers and possibly server side rendering (though we are not using SSR in our app).

Is React On Rails compatible with this non-webpack HTM approach?

Hi! Import maps would not work for SSR.

For client side only rendering, I really don’t know.

I don’t think many React apps are using Import maps.

Hi! you can just use React.createElement to be save you from using webpack.