Discussion about Autoform

@captainn

There is a HOC for this usecase: connectField:

import { connectField } from 'uniforms';

const ColorField = connectField(({ value, onChange }) => (
  <div className="field form-group">
      <label className="control-label">Link to</label>
      <SketchPicker
        color={value}
        onChangeComplete={ color => onChange(color.hex)} />
    </div>
))

Thanks! It looks like that HOC will help me make some of these components more reusable instead of one offs, which is great.