Update 17_react_router.md

move the Route to the bottom of the list
<Route path="*" component={NotFound} />
pull/305/head
Priyanshu Garg 2 years ago committed by GitHub
parent 2d2f9767ab
commit 7c3ca488d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -555,11 +555,11 @@ class App extends Component {
<div className='App'>
<Navbar />
<Switch>
<Route path="*" component={NotFound} />
<Route path='/about' component={About} />
<Route path='/contact' component={Contact} />
<Route path='/challenge' component={Challenges} />
<Route exact path='/' component={Home} />
<Route path="*" component={NotFound} />
</Switch>
</div>
</Router>

Loading…
Cancel
Save