Cleaner way to handle form fileds? #4002
Replies: 1 comment 1 reply
-
I think the only way to reduce repetitiveness is to use custom declarative APIs. Meaning you create input components that fit your needs (text, select, checkbox, radio, etc..) which would use Then you no longer need to use Alternatively, if you still want to use
For validation and initial values, can't think of something at the moment. Unless you are feeling inventive and could create a function that resolves the validation rules from a given initial value object. But I doubt that will work well. |
Beta Was this translation helpful? Give feedback.
-
What is the best way to handle forms like this?
I feel like I am repeating myself quite frequent.
Is there a better and cleaner way?
Beta Was this translation helpful? Give feedback.
All reactions