Skip to content

Commit

Permalink
Fix react18 type issue (#17)
Browse files Browse the repository at this point in the history
* add maha jayamangala ghatha

* silly fix
  • Loading branch information
sudaraka94 authored May 1, 2024
1 parent 7fdc8f5 commit be1cffc
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import { store } from "./store";
import "./index.css";

const root = document.getElementById('root');
createRoot(root).render(
<React.StrictMode>
<Provider store={store}>
<App />
</Provider>
</React.StrictMode>
);
if (root) {
createRoot(root).render(
<React.StrictMode>
<Provider store={store}>
<App />
</Provider>
</React.StrictMode>
);
}

0 comments on commit be1cffc

Please sign in to comment.