Skip to content

Instantly share code, notes, and snippets.

@rafatwork
rafatwork / react-popover_onMouseEnter_onMouseLeave_example.jsx
Last active March 18, 2017 07:05
react-popover onMouseEnter/onMouseLeave example
import React from 'react';
import Popover from 'react-popover';
class HelloWorld extends React.Component {
constructor() {
super();
this.showPopover = this.showPopover.bind(this);
this.hidePopover = this.hidePopover.bind(this);
this.trackMouse = this.trackMouse.bind(this);
this.untrackMouse = this.untrackMouse.bind(this);