Description

Methods for obtaining and interacting with react components.

Methods


<async, static> getComponentByName( name, selector ) → {Promise.<ReactComponent>}

Description

Finds a component from the components array or by waiting for it to be mounted.

Parameters
Name Type Description
name String

The component's name

selector Object

A selector to look for

Returns

<async, static> getComponent( name, selector, filter ) → {Promise.<ReactComponent>}

Description

Finds a component from the components array or by waiting for it to be mounted.

Parameters
Name Type Description
name String

The component's name

selector Object

A selector to look for

filter function

A function to filter components if a single element is rendered by multiple components

Returns