Skip to content

Instantly share code, notes, and snippets.

@olslash
Created June 5, 2016 08:42
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 olslash/fc48da01a7a0e56047bb62b562aac0e9 to your computer and use it in GitHub Desktop.
Save olslash/fc48da01a7a0e56047bb62b562aac0e9 to your computer and use it in GitHub Desktop.
import React from 'react';
// import { } from 'lodash';
// import { PropTypes } from 'helpers/react';
// const { } = PropTypes;
const $NAME$ = ({
fields
} = {}) => (WrappedComponent) => {
class Wrapped$NAME$ extends React.Component {
static propTypes = {
};
static defaultProps = {
};
render() {
return (
<WrappedComponent { ...this.props } />
);
}
}
return Wrapped$NAME$;
};
export default $NAME$;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment