Skip to content

Commit 1fc6563

Browse files
committed
Fix the bug
1 parent c0efbe3 commit 1fc6563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react_ujs/src/reactDomClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ReactDOM from "react-dom"
22

3-
const reactMajorVersion = ReactDOM.version?.split('.')[0] || 16
3+
const reactMajorVersion = ReactDOM?.version?.split('.')[0] || 16
44

55
// TODO: once we require React 18, we can remove this and inline everything guarded by it.
66
const supportsRootApi = reactMajorVersion >= 18

0 commit comments

Comments
 (0)