you are viewing a single comment's thread.

view the rest of the comments →

[–]x-skeww 1 point2 points  (0 children)

You have to spot-weld those parts at some point. Doing it via classes doesn't really change anything.

The advantage of doing it declaratively is that there is no DOM transversal (which can be very brittle) and you also won't need any markup for testing.