... | ... | @@ -58,6 +58,13 @@ We can take the *Structure builder* module as an example. |
|
|
|
|
|
A weird (not bad) consequence of this unidirectional system is that a component generates an action (e.g. resulting from a user interaction) and that action will be modifying the component state but indirectly: via the callback method after receiving the state event.
|
|
|
|
|
|
#### UI components implementation
|
|
|
|
|
|
The UI components are implemented by using the native browser *DOM API* and the *ES6* `class` as means to encapsulate the component.
|
|
|
|
|
|
A base class called *UIComponent* (`UIComponent.js`) will be used in order to hide some implementation details and reuse code.
|
|
|
|
|
|
|
|
|
---
|
|
|
### Approach/philosophy (PENDING)
|
|
|
|
... | ... | |