5 ms·
Cool! Any reason you didn't just add a onMouseLeave handler too? If you do you don't need the componentWillReceiveProps, which I think is a bit nicer: http://j
by spicyj 13y ago
Cool! Any reason you didn't just add a onMouseLeave handler too? If you do you don't need the componentWillReceiveProps, which I think is a bit nicer:
http://jsfiddle.net/spicyj/DGLtv/ http://jsfiddle.net/spicyj/DGLtv/
- wingspan 13y agoNo reason in particular, just put it together quickly. Yours is a good option since it keeps the DOM count low instead of letting it grow as you mouse around :)