If you just want React+Rails, the rails generator command comes with a bunch of options to set that up for you, including setting up and configuring: React/Vue/etc, a bundler like vite, typescript, tailwind.
It looks like inertia has additional features though.
It looks like inertia has additional features though.