I’ve read a bunch of tutorials but they suggest either 1) using import maps (not really what I want here for JSX) or 2) essentially compiling your JSX with a watcher while developing, and then somehow also getting it to compile for the asset pipeline.
Do you have suggestions on how to do what I was doing previously? Rails makes .scss files “just work” and I am looking to do the same with .jsx files.
Also, is there an example React+JSX app I can look at somewhere see how everything is typically set up?
from what I understand the successor to Webpacker for Rails 6 is Shakapacker for Rails 7. It has great out of the box configuration for webpack using Rails 7 and will handle your JSX/Typescript compilation needs.