react router 404 redirect

95

react router 404 redirect -

<Route path='*' exact={true} component={My404Component} />
 // Or don't mention path
<Route component={My404Component} />

Comments

Submit
0 Comments