a guest Feb 17th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Wrapper components for passing properties to components in <Route>
- `<RouteWithProps>` -- renders a <Route> component, passing properties to the target component
- `<AuthRoute>` -- only renders the route if the auth parameter is true
- `<AuthRouteWithProps>` -- renders a <Route> component, passing properties to the target component, only is the auth parameter is true
RAW Paste Data