के साथ काम नहीं कर रहा है क्लिक ईवेंट ठीक काम करता है, लेकिन ऑन-हाउसओवर ईवेंट काम नहीं करता है।onmouseover React.js
ProfImage = React.createClass({
getInitialState: function() {
return { showIcons: false };
},
onClick: function() {
if(this.state.showIcons == true) {
this.setState({ showIcons: false });
}
else {
this.setState({ showIcons: true });
}
},
onHover: function() {
this.setState({ showIcons: true });
},
render: function() {
return (
<div>
<span className="major">
<img src="/images/profile-pic.png" height="100" onClick={this.onClick} onmouseover={this.onHover} />
</span>
{ this.state.showIcons ? <SocialIcons /> : null }
</div>
);
}
});
'onMouseOver = {this.onHover.bind (यह,' मान ')} ' –