Use case

For example, you want to:

  • View a component (e.g. Main), which contains several subcomponents.

  • Without changing that view, change the State of the instances of the subcomponents.

How to

There are two ways to update child component States:

The first is by directly addressing them via the timeline.

Every state of an instantiated component should be exposed as a timeline row:

The second is event-driven. The gist is you can emit custom events from the parent component down to the child component, then update States using e.g. this.setState({...}) in an Action. Read more here.

Did this answer your question?