skip to Main Content

ReactJS Routing

I have implemented routing in my React app and I wanted to redirect non-existent routes to errorpage. Route: <Route path="/errorpage" component={ErrorPage} /> {/*<Route path="/:parentId/:childId" component={ErrorPage} />*/} <Redirect to="/errorpage" /> Working: When I try to access domain/notapath --> Redirect to proper…

VIEW QUESTION
Back To Top
Search