How to add multiple event handlers to same event in React.js

后端 未结 4 1055
星月不相逢
星月不相逢 2021-02-13 19:35

All:

I wonder if it is possible that binding multiple event handlers to same event?

For example:

var LikeToggleButton = React.createClass({
    r         


        
4条回答
  •  灰色年华
    2021-02-13 20:19

    Maybe you can set multiple click event handlers on the same one target as described here: https://gist.github.com/xgqfrms-GitHub/a36b56ac3c0b4a7fe948f2defccf95ea#gistcomment-2136607

    Code (copied from linke above):

    //...

提交回复
热议问题