From be1cffcc66a386180da658f666d53415b4a62d7e Mon Sep 17 00:00:00 2001 From: Sudaraka Jayathilaka Date: Wed, 1 May 2024 21:35:59 +0800 Subject: [PATCH] Fix react18 type issue (#17) * add maha jayamangala ghatha * silly fix --- src/main.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index b73d271..22e1782 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -8,10 +8,12 @@ import { store } from "./store"; import "./index.css"; const root = document.getElementById('root'); -createRoot(root).render( - - - - - -); +if (root) { + createRoot(root).render( + + + + + + ); +}