Re:Elemental UI for React.js
by afshin on Monday August 24, 2015 @02:58PM
(#10112234)
Just a guess, but it might be that because "for" is a JS restricted word, they picked an attribute name that wouldn't maybe trip up a syntax highlighter or something of that nature.
[ Parent
| on HN ]
Re:Elemental UI for React.js
by lobster_johnson on Monday August 24, 2015 @03:04PM
(#10112273)
That's not what I was referring to. There shouldn't be any reason for the FormField component to need to know the name of what the label is referring to, since it has access to its children through the "children" prop.