score:1

Accepted answer
<PrivateRoute exact path={["/", "/profile", "/pets/:id"]}>
   <Home />
</PrivateRoute>

Related Query

More Query from same tag