ReactDOM.render
is used instead of createRoot
in DEV build
#35094
Labels
topic: core
Relates to Gatsby's core (e.g. page loading, reporter, state machine)
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
In DEV build, if React 18 (any minor versions) is used,
render
is being called instead of the new APIcreateRoot
.Doesn't seem to affect PROD build.
Reproduction Link
https://github.com/mwskwong/react-18-rc-2-repo
Steps to Reproduce
Expected Result
createRoot
should be used in DEV build.Actual Result
render
is used in DEV build instead.Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: