Severity: AnalysisErrorSeverity.WARNING
Maturity: stable
Since 1.0.0
PREFER to only set props on Dom
components that produce valid HTML attributes.
All OverReact Dom
component builders show prop keys from DomPropsMixin
in the autocompleted
list of available prop setters. However, some of those props are only valid on certain types of elements.
For example:
// This will produce valid HTML.
(Dom.textarea()..rows = 2)()
// This will not.
(Dom.div()..rows = 2)()