Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react router route not found redirect

<Route path='/404' component={My404Component} />
<Redirect from='*' to='/404' />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #router #route #redirect
ADD COMMENT
Topic
Name
5+2 =