Skip to content

Instantly share code, notes, and snippets.

@dtothefp
Created September 3, 2015 19:01
Show Gist options
  • Select an option

  • Save dtothefp/c702bcb1d478810a68b1 to your computer and use it in GitHub Desktop.

Select an option

Save dtothefp/c702bcb1d478810a68b1 to your computer and use it in GitHub Desktop.
export default function(ComposedComponent) {
let displayName = ComposedComponent.displayName || ComposedComponent.name;
@nuclearComponent({
formState: FormGetters.formState,
formValidation: FormGetters.formValidation
})
@provideContextDec({
Actions: PropTypes.object.isRequired,
formId: PropTypes.string.isRequired
})
class HigherOrderInput extends Component {
render() {
<ComposedComponent id={this.id} classes={inputClasses} {...inputRest} />
</Label>
);
}
return component;
}
}
return HigherOrderInput;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment