hatchways / team-scallops

1 stars 1 forks source link

FE/IN: Protected Route #28

Closed rajivtitus closed 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