minhtranite / react-lazysizes

LazySizes component for ReactJS base on lazysizes
37 stars 12 forks source link

using new non depreciated ReactDOM method #1

Closed dstauffer closed 9 years ago

dstauffer commented 9 years ago

from react v0.1.4 Upgrade guide: https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html

Each of these changes will continue to work as before with a new warning until the release of 0.15 so you can upgrade your code gradually.

Due to the DOM node refs change mentioned above, this.getDOMNode() is now deprecated and ReactDOM.findDOMNode(this) can be used instead. Note that in most cases, calling findDOMNode is now unnecessary – see the example above in the “DOM node refs” section.

minhtranite commented 9 years ago

Thank for pull request!