Closed jaywcjlove closed 2 years ago
不能这样直接引用,如果在 react 17 中引入,import('react-dom') 或者 import('react-dom/client')
import('react-dom')
import('react-dom/client')
使用 try catch
try catch
_Originally posted by @jaywcjlove in https://github.com/uiwjs/react-code-preview/pull/214#discussion_r856365447_
不能这样直接引用,如果在 react 17 中引入,
import('react-dom')
或者import('react-dom/client')
使用
try catch
_Originally posted by @jaywcjlove in https://github.com/uiwjs/react-code-preview/pull/214#discussion_r856365447_