We've moved discussions to Discord

Install react in jumpstart pro

Giovanni Panasiti
Hello, 

I need to figure out a way to install react inside my jumpstart pro app. Anyone has any experience? I'm seeing the js build is made with esbuild but I have really no clue how to use react with it. 
I've only some experience with webpacker. 

Thank you so much, 
Steven Wagner
Following for a similar reason. 

Chris Oliver
The esbuild docs cover it: https://esbuild.github.io/getting-started/#your-first-bundle

You'll want to setup react so it mounts / unmounts when Turbo loads a new page though. Use the standard turbo:load event for that.
Giovanni Panasiti
Thank you so much Chris!! 
Giovanni Panasiti
Hello, 

I need to figure out a way to install react inside my jumpstart pro app. Anyone has any experience? I'm seeing the js build is made with esbuild but I have really no clue how to use react with it. 
I've only some experience with webpacker. 

Thank you so much, 
Steven Wagner
Following for a similar reason. 

Chris Oliver
The esbuild docs cover it: https://esbuild.github.io/getting-started/#your-first-bundle

You'll want to setup react so it mounts / unmounts when Turbo loads a new page though. Use the standard turbo:load event for that.
Giovanni Panasiti
Thank you so much Chris!! 
Notifications
You’re not receiving notifications from this thread.
© 2022 Jumpstart Pro by GoRails, LLC