change react.tsx to react.ts

This commit is contained in:
Philipp Kühn 2021-09-17 13:55:06 +02:00
parent 1a43d2992f
commit de7f769ca3

View File

@ -13,7 +13,7 @@ export default function init(name: string, source: any) {
import(`../src/${demoCategory}/${demoName}/React/index.jsx`)
.then(module => {
ReactDOM.render(<module.default />, document.getElementById('app'))
ReactDOM.render(React.createElement(module.default), document.getElementById('app'))
debug()
})
}