Skip to content

Instantly share code, notes, and snippets.

@chrisirhc
Created January 31, 2016 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisirhc/7704323ee25fbcb32b22 to your computer and use it in GitHub Desktop.
Save chrisirhc/7704323ee25fbcb32b22 to your computer and use it in GitHub Desktop.
DOM diffing, DOM shape, and mouse events (Rendered DOM)
/* non-hovered */
<div className="has-tooltip"
onMouseEnter={this._setHovered}
onMouseLeave={this._setNotHovered}
></div>
/* hovered */
<div className="tooltip-region">
<div className="has-tooltip"
onMouseEnter={this._setHovered}
onMouseLeave={this._setNotHovered}
></div>
<div>Hello</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment