mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 22:36:14 +08:00
migrate to React 18 API
This commit is contained in:
parent
2f3a0312a8
commit
1e0ca1483b
@ -13,7 +13,8 @@ export default function init(name: string, source: any) {
|
||||
|
||||
import(`../src/${demoCategory}/${demoName}/React/index.jsx`)
|
||||
.then(module => {
|
||||
ReactDOM.render(React.createElement(module.default), document.getElementById('app'))
|
||||
// @ts-ignore waiting for https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210
|
||||
ReactDOM.createRoot(document.getElementById('app')).render(React.createElement(module.default))
|
||||
debug()
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user