This.props.name instead this.state.name

In CHILD COMPONENTS UPDATE THEIR SIBLINGS’ PROPS Display Information in a Sibling Component, we are passing this.state.name from parent component to one of the siblings, so in that sibling component we created a variable:

const name = this.props.name

why it is not

const = this.state.name

If the name comes from parent’s state?