React onClick and preventDefault() link refresh/redirect?

前端 未结 13 770
生来不讨喜
生来不讨喜 2020-11-30 06:04

I\'m rendering a link with react:

render: ->
  `upvote`

Then, above I hav

13条回答
  •  独厮守ぢ
    2020-11-30 06:48

    If you use checkbox

    
    

    stopPropagation and stopImmediatePropagation won't be working.

    Because you must using onClick={this.checkboxHandler}

提交回复
热议问题