Reflection and Custom States in Web Components
In the Web Component world, attribute reflection is commonly used to style custom elements both internally and as public APIs for consumers. If you're not familiar, attribute reflection occurs when an attribute in the DOM is updated due to changes in a corresponding property. A lot of folks conflate attributes and properties, so here's an example. ...
评论
?
参与讨论