<div onClick={e => this.openDetail}>
<div onClick{e => this.handleLike} />
like
</div>
</div>
How does e.stopPropagation();
work in react? I tried put that in both handler, openDetail
will always fire.
<div onClick={e => this.openDetail}>
<div onClick{e => this.handleLike} />
like
</div>
</div>
How does e.stopPropagation();
work in react? I tried put that in both handler, openDetail
will always fire.