Using React with importmaps on Rails 7

Thanks for taking the time to watch the videos!

I have the same concerns, as for the scss - looks like there’s a way to handle that on Rails assets pipeline: The Asset Pipeline — Ruby on Rails Guides

as for the React render/returned JSX that needs to be wrapped by htm function,
I was thinking that we could add a centralized render wrapper in core that would take care of it,
but then it is still a lot of work to update each and every component we use, and probably means we can’t import directly from Patternfly(?)
but maybe we can use a modified version of React that parse the JSX as a htm string,
not sure if that would work well, but I am sure it’s a very ugly solution.
so, in this case, we could use the other suggestion of esbuild.

I also suggested it in the past, but from my understanding, the architecture of Foreman and plugins is a bit more complex, here is one of the main discussions: An Independent UI for Foreman and Plugins - Discussion and Investigation