Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a way to render component but globally #21

Open
mathieuancelin opened this issue Nov 10, 2021 · 0 comments
Open

provide a way to render component but globally #21

mathieuancelin opened this issue Nov 10, 2021 · 0 comments

Comments

@mathieuancelin
Copy link
Member

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

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

No branches or pull requests

2 participants