Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const withAuth = () => <OriginalProps extends {}>(
- Component: React.ComponentType<OriginalProps & IAuthContextInterface>
- ) => { }
- (withAuth()(PrivateRoute)) // this is how the HOC called
- const withAuth = () => (
- Component: React.ComponentType<OriginalProps & IAuthContextInterface>
- ) => { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement