I have an eventHandler and I want it's sibling component to handle it. There are a lot of properties (e.g. this.randomNumber = 555
inside constructor) inside <Brains />
which are needed for onLeftLeftMove
to handle the event.
render( ) {
<div>
<LeftControl onTouchMove={this.onLeftMove} />
<Brains ..wants to handle onLeftMove because onLeftMove needs access to a lot of properties inside Brains.. />
</div>
}
How to do this?