class Parent extends React.Component {
state = {
someStateKey: false,
};
someHandler = () => {
this.setState({ someStateKey: true });
};
render() {
return (
<Wrapper>
<ChildA someHandler={this.someHandler} />
<ChildB stateKey={this.state.someStateKey} />
</Wrapper>
);
}
}