I want to do something like this where if no route matches I instantly redirect to '/'. With the code below when I hit the path that doesn't exist I get Nothing was returned from render
<Switch>
<Route exact path="/" component={UnAuth} />
<PrivateRoute exact path="/:contentId" component={Content} />
<Redirect to="/" />
// <Redirect from='*' to='/' /> doesn't work as well
</Switch>