Skip to content

provide a way to render component but globally #21

Description

@mathieuancelin

we should be able to do something like

<Form ... renderInputs={{
  "text": ({rawValues, value, onChange, error}) => <input type="text" className="is-invalid" value={value} onChange={e => onChange(e.target.value)} />,
  "date": ({rawValues, value, onChange, error}) => <input type="date" className="is-invalid" value={value} onChange={e => onChange(e.target.value)} />
}} />

and be able to not redefine every component kind without breaking everything

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions