Currently DOM ids are something like invent-62h3kdg21k. They could be more meaningful like: invent-button-click-me (taking invent + the component type [button] and a slugged button label [click me]). The heuristics for such names probably live in the class defining the component to be given an ID (i.e. the Button knows how to create human friendly unique button ids).
Currently DOM ids are something like
invent-62h3kdg21k
. They could be more meaningful like:invent-button-click-me
(takinginvent
+ the component type [button
] and a slugged button label [click me
]). The heuristics for such names probably live in the class defining the component to be given an ID (i.e. theButton
knows how to create human friendly unique button ids).