0
<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.

Alan Jenshen
  • 3,159
  • 9
  • 22
  • 35

0 Answers0