hatchways / team-pumpernickel

0 stars 0 forks source link

FE/IN: Protected Route #28

Open rajivtitus opened 3 years ago

rajivtitus commented 3 years ago

- Create a superset of Route and add in an authentication check. Please utilise proper types from react-router when creating this component.

Resource: https://dev.to/mychal/protected-routes-with-react-function-components-dh

React Router Types: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-router/index.d.ts