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
If an id prop is not passed to the FormComponent component, it generates a unique id for labels lower down in the component tree. This is great in some ways, but it has a couple issues:
It's not clear in the documentation that this will happen, since it's not using defaultProps
This causes issues with snapshot tests for users of the library, since this data is randomized for each test run
Issue 1 has an obvious fix. Issue 2 could just be a requirement for users to supply an id prop during tests.
The text was updated successfully, but these errors were encountered:
If an
id
prop is not passed to theFormComponent
component, it generates a unique id for labels lower down in the component tree. This is great in some ways, but it has a couple issues:defaultProps
Issue 1 has an obvious fix. Issue 2 could just be a requirement for users to supply an id prop during tests.
The text was updated successfully, but these errors were encountered: