Skip to content

Commit

Permalink
refactor: react strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
habby1337 committed Mar 14, 2024
1 parent 585b9ec commit 1646315
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import React from "react";

Check failure on line 1 in src/main.tsx

View workflow job for this annotation

GitHub Actions / Build-Deploy

'React' is declared but its value is never read.
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import "./index.css";

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

0 comments on commit 1646315

Please sign in to comment.