JedWatson / react-hammerjs

ReactJS / HammerJS integration. Support touch events in your React app.
MIT License
937 stars 128 forks source link

Use ref instead of ReactDOM.findDOMNode() #64

Closed gwu closed 7 years ago

gwu commented 7 years ago

ReactDOM.findDOMNode() is discouraged, so we use refs instead (https://facebook.github.io/react/docs/react-dom.html#finddomnode). This allows us to use this in our server-side render correctly.

JedWatson commented 7 years ago

Really neat solution, thanks @gwu