79231434

Date: 2024-11-27 18:19:32
Score: 1
Natty:
Report link

Strict Mode Docs: https://react.dev/reference/react/StrictMode

import { createRoot } from "react-dom/client";
import App from "./App.tsx";
import "./index.css";

// Remove strict mode
// With strict mode, the 1st time the useEffect is called,
// it will be called a 2nd time

// createRoot(document.getElementById('root')!).render(
//   <StrictMode>
//     <App />
//   </StrictMode>,
// )

createRoot(document.getElementById("root")!).render(<App />);
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: quentinkrammer