For readers like me who are looking for a way to reparent an expensive element without re-rendering, note that this solution DOES trigger a re-render, so the actual DOM node is destroyed and re-built. So you may want to look elsewhere. (I'm still looking for a solution myself)
The aim of the project is exactly to avoid this. The re-render takes place but the element is not reconstructed thanks to the work that is done at the React internals.
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.
Nice article!
For readers like me who are looking for a way to reparent an expensive element without re-rendering, note that this solution DOES trigger a re-render, so the actual DOM node is destroyed and re-built. So you may want to look elsewhere. (I'm still looking for a solution myself)
The aim of the project is exactly to avoid this. The re-render takes place but the element is not reconstructed thanks to the work that is done at the React internals.