found
found copied to clipboard
Bug: Doesn't render if we use React 18
Found doesn't work if we use a new API for rendering the app. If we use the previous render method it works, but with this new createRoot
API it doesn't work.
Example: https://stackblitz.com/edit/react-ts-txojky?file=index.tsx
Hey the links example seems to work for me. What are you seeing that is wrong?
You are not going to believe it but when I wrote it was not working. Now it is working. Strange. The most probability is HMR.
I see if you change something in that link it shows a blank screen.

Anyways I have one project even if I start the project from the command line it is showing an empty screen.
FYI I am using Vite.
I found a possible solution in #968, maybe that's what fixed it for you?