Skip to content

Commit

Permalink
#8: fix unordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiai committed Apr 25, 2019
1 parent 9f06601 commit 65c5793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 8-web-components/1-webcomponents-intro/article.md
Expand Up @@ -56,7 +56,8 @@ Components may have subcomponents, e.g. messages may be parts of a higher-level

How do we decide, what is a component? That comes from intuition, experience and common sense. Usually it's a separate visual entity that we can describe in terms of what it does and how it interacts with the page. In the case above, the page has blocks, each of them plays its own role, it's logical to make these components.

- A component has its own JavaScript class.
A component has:
- its own JavaScript class.
- DOM structure, managed solely by its class, outside code doesn't access it ("encapsulation" principle).
- CSS styles, applied to the component.
- API: events, class methods etc, to interact with other components.
Expand Down

0 comments on commit 65c5793

Please sign in to comment.