Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const createForm = options => {
const formWrapper = createRcForm({
fieldNameProp: 'id',
fieldMetaProp: FIELD_META_PROP,
...options,
});
return DecoratedComponent =>
formWrapper(
class Form extends Component {
static propTypes = {
form: PropTypes.object.isRequired,
};
static childContextTypes = {
form: PropTypes.object.isRequired,
};