Yes, I never looked at that but just this week I've been adding components to the virtual dom framework I am building. This is how I am handling the components and I imagine React probably does something similar (with more complexity, of course)
// you write your componentfunctionComp(){// ... do stuff here}// the framework handles it like soif(typeofvNode.type==='function'){constComponent=vNode.type;// ... set the props here// ... create update function which is similar to setStateconstrenderedComponent=Component(props,updateFn);returnrenderElement(renderedComponent);}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes, I never looked at that but just this week I've been adding components to the virtual dom framework I am building. This is how I am handling the components and I imagine React probably does something similar (with more complexity, of course)