Skip to content

Commit 04db745

Browse files
authored
Merge pull request #1398 from nakrovati/add-react-strict-mode
refactor(web-ts-results): add React.StrictMode
2 parents cb515eb + d028b05 commit 04db745

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

webdriver-ts-results/src/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from "react";
22
import App from "./App";
33
import { createRoot } from "react-dom/client";
44

5-
window.onload = () => {
6-
const root = createRoot(document.getElementById("root")!);
7-
8-
root.render(<App />);
9-
};
5+
createRoot(document.getElementById("root")!).render(
6+
<React.StrictMode>
7+
<App />
8+
</React.StrictMode>,
9+
);

0 commit comments

Comments
 (0)