secure-electron-template
secure-electron-template copied to clipboard
Browser route not working from index.tsx file by npm run prod
Please provide the following information:
Operating system: Windows 10 Version of the template: 22.0.0
Below are the code for index.tsx
const container = document.getElementById("target")!; const root = createRoot(container); root.render( <BrowserRouter> <Suspense fallback={<Loading/>}> <Routes> <Route path='/' element={<AuthCode/>} /> <Route path="/login" element={<Login/>}/> </Routes> </Suspense> </BrowserRouter> );
Inside AuthCode.tsx, only one text box are there.
But no UI opening if I run npm run prod but it is running fine by npm run dev
Please suggest