Module: render
Functions
render
▸ render(fiber
, container
): void
Renders the given fiber and its children to the DOM in the given container. Note that all children of the container will be removed from the DOM, before the fiber and its children are rendered.
Parameters
Name | Type | Description |
---|---|---|
fiber | Fiber | The fiber which should be rendered. |
container | HTMLElement | The container in which the fiber should be rendered. |
Returns
void
Defined in
rerenderFunctionalFiber
▸ rerenderFunctionalFiber(fiber
, container
): void
Re-renders the given FunctionalFiber inside the given container.
This will create a copy of the fiber tree, re-evaluate the fiber's fiberFunction
and compare the newly generated fiber tree to the old one, applying all changes to the DOM.
Parameters
Name | Type | Description |
---|---|---|
fiber | FunctionalFiber | The fiber which should be re-rendered. |
container | HTMLElement | The container to render the fiber in. |
Returns
void