e2e-test: fix React 17 app bootstrap for new frontend apps

Use the generated app root API when switching the scaffolded app to React 17 so the new frontend app still type-checks in E2E.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 11:05:03 +01:00
parent 9603f9c6c0
commit 2dce1f23eb
+1 -1
View File
@@ -437,7 +437,7 @@ async function switchToReact17(appDir: string) {
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
ReactDOM.render(App.createRoot(), document.getElementById('root'));
`,
'utf8',
);