If you set up Vite it should work, there is also CRA, which works but is now outdated.
You also need the render
method, which is not included in the code shown in the React steps.
The next version will include more updated React stuff.
Here a fullstack Vite environment that works:
You just need to change the App.jsx file. Write in the App
component whatever React you want and it will be rendered
Follow here to set it up locally: Getting Started | Vite