You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, technically speaking, you don't actually ever need to add an id to an Input. Just like a native HTML input element will not trigger any warnings for lack of the id prop.
Probably the documentation should be worded better. It should perhaps read:
Inputs should have a unique ID prop whenever the label prop is being used.
The behaviour of Input is to automatically inject a pre-formatted label should the label prop be applied.
Activity
xdrdak commentedon Nov 25, 2019
Hmm, technically speaking, you don't actually ever need to add an id to an Input. Just like a native HTML input element will not trigger any warnings for lack of the id prop.
Probably the documentation should be worded better. It should perhaps read:
Inputs should have a unique ID prop whenever the label prop is being used.
The behaviour of
Inputis to automatically inject a pre-formatted label should the label prop be applied.