Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make ReactDOM.createPortal() official #10675
We might later want to move portal creation to
So we might as well call the current API "stable". Especially because it's the only migration path for top-level render returning
See individual commits. I added validation because otherwise you get a very confusing error when you pass something else. Also helps us make it clear it's currently not supported by SSR.
Open question: what happens if you do