Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Doesn't render if we use React 18 #961

Open
0xHexE opened this issue Apr 21, 2022 · 5 comments
Open

Bug: Doesn't render if we use React 18 #961

0xHexE opened this issue Apr 21, 2022 · 5 comments

Comments

@0xHexE
Copy link

0xHexE commented Apr 21, 2022

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

@jquense
Copy link
Member

jquense commented Apr 21, 2022

Hey the links example seems to work for me. What are you seeing that is wrong?

@0xHexE
Copy link
Author

0xHexE commented Apr 21, 2022

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.

@0xHexE
Copy link
Author

0xHexE commented Apr 21, 2022

I see if you change something in that link it shows a blank screen.

Screen Shot 2022-04-21 at 7 07 48 PM

Anyways I have one project even if I start the project from the command line it is showing an empty screen.

@0xHexE
Copy link
Author

0xHexE commented Apr 21, 2022

FYI I am using Vite.

@puchm
Copy link

puchm commented Apr 29, 2022

I found a possible solution in #968, maybe that's what fixed it for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants