#8: fix unordered list
This commit is contained in:
parent
9f06601c34
commit
65c5793733
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue