Community

Get React Component Data by DOM Node

(David Walsh) Retrieving a React component’s DOM node is fairly simple from within the component itself, but what if you want to work backward: retrieve a component’s instance by DOM node?