onmouseover not working with React.js

后端 未结 2 2006
情书的邮戳
情书的邮戳 2021-01-01 16:52

The click event works fine, but the onmouseover event does not work.

ProfImage = React.createClass({

    getInitialState: function() {
        return { sh         


        
2条回答
  •  鱼传尺愫
    2021-01-01 17:33

    Both the answers above are correct, but you need to bind these method to the class context too!

    
    

提交回复
热议问题