Guest User

Untitled

a guest
Jun 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const withSatsForm =
  2.     <P, K>(options: WithSatsFormOptions<K>) =>
  3.         (SatsComponent: ComponentType<P>) => {
  4.             class WithSatsForm extends Component<WithSatsFormProps & P> {
  5.                 constructor(props: WithSatsFormProps & P) {
  6.                     super(props);
  7.                 }
  8.  
  9.                 public render() {
  10.                     return (
  11.                         <div>
  12.                             <SatsComponent {...this.props as P} />
  13.                         </div>
  14.                     )
  15.                 }
  16.             }
  17.  
  18.             return connect()(WithSatsForm);
  19.         }
  20.  
  21. export default withSatsForm;
Add Comment
Please, Sign In to add comment