npm install
# start the webpack-dev-server
npm run dev
# wait for the first compilation is successful
# in another terminal/console
# start the spring-boot server
./gradlew bootRun
# open this url in your browser
http://localhost:8080/
The configuration is webpack.config.js.
It automatically recompiles and refreshes the page when JSX files are changed.