[IMP] component: allow multiple mount/unmount

closes #258
This commit is contained in:
Géry Debongnie
2019-08-22 13:32:53 +02:00
parent eaf912bed7
commit e5b1ba24d8
3 changed files with 76 additions and 4 deletions
+2
View File
@@ -149,6 +149,8 @@ We explain here all the public methods of the `Component` class.
is asynchronous, since each children need to be created as well. Most applications
will need to call `mount` exactly once, on the root component.
Note that a component can be mounted and unmounted multiple times if needed.
- **`unmount()`**: in case a component need to be detached/removed from the DOM, this
method can be used. Most applications should not call `unmount`, this is more
useful to the underlying component system.