Setting up React with Rails-7 using esbuild.
Prerequisites for local setup:
rails 7 installed
yarn installed
Create a new rails app by the command:
rails new esbuildApp -j esbuild
Now let us look at the Package.json and Procfile.dev
Package.json
package.json has our js dependencies and scr...
rafi33.hashnode.dev4 min read