Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const withSatsForm =
- <P, K>(options: WithSatsFormOptions<K>) =>
- (SatsComponent: ComponentType<P>) => {
- class WithSatsForm extends Component<WithSatsFormProps & P> {
- constructor(props: WithSatsFormProps & P) {
- super(props);
- }
- public render() {
- return (
- <div>
- <SatsComponent {...this.props as P} />
- </div>
- )
- }
- }
- return connect()(WithSatsForm);
- }
- export default withSatsForm;
Add Comment
Please, Sign In to add comment