feat(webpack-react): add React.StrictMode

This commit is contained in:
dancingCycle 2022-07-18 15:34:18 +02:00
parent c6c07c935f
commit cc942a884e
1 changed files with 5 additions and 1 deletions

View File

@ -10,4 +10,8 @@ import { createRoot } from 'react-dom/client';
//create root container
const root = createRoot(document.getElementById("root"));
//render root app
root.render(<App />);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);