Container

Container

new Container()

Members

children

:Array.<React.Component>

A list of the container's children.

components

:Array.<React.Component>

A list of the container's components.

Methods

addComponent

addComponent(component)

Add a component to the container.

Parameters
Name Type Description
component React.Component

The component

appendChild

appendChild(element)

Appends a DOM element to the container

Parameters
Name Type Description
element HTLMElement

The element

clear

clear()

Removes all components from the container.

removeChild

removeChild(element)

Removes a DOM element from the container

Parameters
Name Type Description
element HTLMElement

The element

removeComponent

removeComponent(component)

Removes a component from the container.

Parameters
Name Type Description
component React.Component

The component