What is the responsibility of Atoms?
With Atoms we use a mechanism to identify a specific event handler. That means, an Atom has the following responsibility:
- Bind an element to a view
- Be part of a Module
How do we distinguish Atoms?
When we use Atoms, we add a
<a href="#id4" class="c-cta" data-js-atom="toggle-close"></a>
What is the advantage?