Closed smeranda closed 2 years ago
Good point. The only issue I see is that you would need to make the id field required for all components. Right now the ID field is optional and it would be nice to keep it like that. My suggestion is to generate a unique id if no id is provided as a prop.
This is helpful for accessibility, screen readers and user interaction. The
select
component already has this modification, so bringing the rest up to this level for consistency.