Type hints when declaring formComponent / fieldComponent
Is it possible to declare a
For example a
Or an example I did recently: I wanted a generic
but it would be really nice to be able to not tie it to current form (in here
fieldComponent / formComponent so that it is aware of the form / field it is used from? For example a
Textfield component that error out if the field it is used in is not of type stringOr an example I did recently: I wanted a generic
ArrayField that displays a consistent field for array fields in form. I did it like this (look into message below)but it would be really nice to be able to not tie it to current form (in here
FormData) but make it generic, preserving type safety for name prop