Get a React Component by DOM Node

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?  This is a task that the old Dojo Toolkit’s Dijit framework allowed with the dojo.byId method, so it made me think if you could do the […]
The post Get a React Component by DOM Node appeared first on David Walsh Blog.

Link: https://davidwalsh.name/get-react-component-by-dom-node