Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react router 404 redirect

<Route path='*' exact={true} component={My404Component} />
 // Or don't mention path
<Route component={My404Component} />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #router #redirect
ADD COMMENT
Topic
Name
2+3 =