Hi ! First of all I want to thank you for providing this starter pack for new beginners like me. However, I want to update my project that using your starter to v18 of React. After I ran npm i react@18 react-dom@18 in the terminal, replace ReactDOM.render( <React.StrictMode> <ChakraProvider> <ColorModeScript initialColorMode={theme.config.initialColorMode} /> <App /> </ChakraProvider> </React.StrictMode>, document.getElementById('root') ) to const root= ReactDOM.createRoot(document.getElementById('root')); root.render(<React.StrictMode> <ChakraProvider> <ColorModeScript initialColorMode={theme.config.initialColorMode} /> <App /> </ChakraProvider> </React.StrictMode>); and the project still can run but the routing/navigation doesn't work anymore. I have to refresh if I want to load the pages. Could you help me to fix the navigation for latest version of React?
Hi ! First of all I want to thank you for providing this starter pack for new beginners like me. However, I want to update my project that using your starter to v18 of React. After I ran
npm i react@18 react-dom@18in the terminal, replaceReactDOM.render( <React.StrictMode> <ChakraProvider> <ColorModeScript initialColorMode={theme.config.initialColorMode} /> <App /> </ChakraProvider> </React.StrictMode>, document.getElementById('root') )toconst root= ReactDOM.createRoot(document.getElementById('root')); root.render(<React.StrictMode> <ChakraProvider> <ColorModeScript initialColorMode={theme.config.initialColorMode} /> <App /> </ChakraProvider> </React.StrictMode>);and the project still can run but the routing/navigation doesn't work anymore. I have to refresh if I want to load the pages. Could you help me to fix the navigation for latest version of React?