anselm

I feel I'm missing a default "Field" component

anselm

right now all my fields are shown as TextField

anselm

I'd go ahead and create a Field component now that checks the field type and loads the proper component

anselm

just wanted to double check if you guys had built that at some point

flamerohr

You could setup a Field component with just this:

  1. export default Field(props) => {
  2. const BuiltField = props.component(props);
  3. return <BuiltField />;
  4. }
flamerohr

because the props.component is the buildComponent function in FormBuilder which determines which field to compose