From de7f769ca3e61ef7598d97d637ba523727f45b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 17 Sep 2021 13:55:06 +0200 Subject: [PATCH] change react.tsx to react.ts --- demos/setup/{react.tsx => react.ts} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename demos/setup/{react.tsx => react.ts} (83%) diff --git a/demos/setup/react.tsx b/demos/setup/react.ts similarity index 83% rename from demos/setup/react.tsx rename to demos/setup/react.ts index 68db4ae34..3011ccb65 100644 --- a/demos/setup/react.tsx +++ b/demos/setup/react.ts @@ -13,7 +13,7 @@ export default function init(name: string, source: any) { import(`../src/${demoCategory}/${demoName}/React/index.jsx`) .then(module => { - ReactDOM.render(, document.getElementById('app')) + ReactDOM.render(React.createElement(module.default), document.getElementById('app')) debug() }) }