I'm wondering where the virtual dom of react is created. Hy question is how and where react create the virtual dom and keep a copy of it and me as a react developer how I can gain access to it, any help will be appreciable.
Asked
Active
Viewed 56 times
0
-
1It's an in-memory representation of the real DOM. Check [this](https://stackoverflow.com/questions/21965738/what-is-virtual-dom). – kalpetros Dec 17 '17 at 23:50
-
I understand the concept of virtual dom and why it is created, what i want know is if it is created by react it self or the rendrer and how to get access to it. – 0_0 Dec 18 '17 at 07:55
-
The virtual DOM is created when the render method is called. You can access DOM nodes using `this.refs` or `ReactDOM.findDOMNode(componentInstance)`. – kalpetros Dec 18 '17 at 13:16
-
thats gives access to the real dom not the virtual one – 0_0 Dec 18 '17 at 22:05