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

Experimental createRoot method not available in React 17 #21525

Closed
singharpit94 opened this issue May 19, 2021 · 5 comments
Closed

Experimental createRoot method not available in React 17 #21525

singharpit94 opened this issue May 19, 2021 · 5 comments

Comments

@singharpit94
Copy link

I am using react and react-dom v17.0.2 and I was trying to use the unstable_createRoot method to render my app but looks like that method is not even present in react v17.0.2.

Can someone comment if this is expected or not.

Thanks,
Arpit

@bvaughn
Copy link
Contributor

bvaughn commented May 19, 2021

This is expected. That API has not been released yet.

If you want to try it, you can install react-dom@experimental but note that the experimental release channel is not meant to be used in production apps.

@singharpit94
Copy link
Author

Any timelines on when these experimental API will be available as part of stable builds.

@jacty
Copy link

jacty commented May 19, 2021

It seems createRoot() is available now without the unstable prefix?

@singharpit94
Copy link
Author

I don't think so, ReactDOM does not have any method named createRoot

@gaearon
Copy link
Collaborator

gaearon commented May 19, 2021

Any timelines on when these experimental API will be available as part of stable builds.

This year seems very likely. You can track progress in #13206.

It seems createRoot() is available now without the unstable prefix?

Yes, but only in the @experimental releases.

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

No branches or pull requests

4 participants