Closed gaydenko closed 9 years ago
I don't like to expose two functions attrs
and props
and make user think which one should be called every time. I think the difference between HTML attributes and DOM properties should be processed inside engine.
But renaming to props
sounds reasonable.
the difference between HTML attributes and DOM properties should be processed inside engine
Does it mean user can use both properties' and attributes' names?
Yes, it does.
Thanks for the clarification!
Hi! At the README.md end we get:
As far as to define CSS class
className
is using, it's natural to conclude DOM node properties are supposed. On the other hand, the function is named asattrs
. I guess, here we get naming inconsistency, as far asattributes
is associated with HTML attributes rather than with DOM node properties.Probably, the best way is to use both (with some denoted contract who win, say, the last in call chain), that is attributes and properties functions named as
attrs
andprops
respectively (as, say, is done in Trackira), and for now just to renameattrs
toprops
.