Skip to content

Instantly share code, notes, and snippets.

@istarkov
Created September 3, 2017 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save istarkov/a7f245222bca3a1383dfc672fe1cf73c to your computer and use it in GitHub Desktop.
Save istarkov/a7f245222bca3a1383dfc672fe1cf73c to your computer and use it in GitHub Desktop.
type MyComponentProps = HOCBase<typeof myEnhancer>
class MyComponent extends React.Component<MyComponentProps> {
render() ...
}
const MyEnhancedComponent = myEnhancer(MyComponent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment