skip to Main Content

Reactjs – I always get redirected to home page when refresh any page in the whole application

main.jsx ReactDOM.createRoot(document.getElementById('root')).render( <React.StrictMode> <Provider store={store}> <BrowserRouter> <ToastContainer /> <App /> </BrowserRouter> </Provider> </React.StrictMode> ) app.jsx const App = () => ( <CustomerRouters /> ); customerRouters.jsx const CustomerRouters = () => { return ( <div> <div> <Navbar /> </div> <Routes> <Route…

VIEW QUESTION
Back To Top
Search