We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0efbe3 commit 1fc6563Copy full SHA for 1fc6563
react_ujs/src/reactDomClient.js
@@ -1,6 +1,6 @@
1
import ReactDOM from "react-dom"
2
3
-const reactMajorVersion = ReactDOM.version?.split('.')[0] || 16
+const reactMajorVersion = ReactDOM?.version?.split('.')[0] || 16
4
5
// TODO: once we require React 18, we can remove this and inline everything guarded by it.
6
const supportsRootApi = reactMajorVersion >= 18
0 commit comments