Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. const withAuth = () => <OriginalProps extends {}>(
  2. Component: React.ComponentType<OriginalProps & IAuthContextInterface>
  3. ) => { }
  4.  
  5. (withAuth()(PrivateRoute)) // this is how the HOC called
  6.  
  7. const withAuth = () => (
  8. Component: React.ComponentType<OriginalProps & IAuthContextInterface>
  9. ) => { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement