Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react router catch all 404

<Switch>
   <Route path="/" exact component={Home}/>
   <Route path="/about" component={About}/>
   <Route component={Page404} />
</Switch>
 
PREVIOUS NEXT
Tagged: #react #router #catch
ADD COMMENT
Topic
Name
5+8 =