in a part of react project
render() {
const {
horizontal,
className,
children,
...rest,
} = this.props;
const cx = classNames({
'form-horizontal': horizontal,
}, className);
return (
<form className={cx} {..rest}>
{children}
</form>
);
}
};
const Field = ({ children, ..rest }) => (
<div className="form-group">
{children}
</div>
);
…