Does React automatically crop components that have removed mount points from the DOM?

For example, if I use renderComponent to render in a DOM node and then delete the DOM node manually, did I just skip memory? Is the React component remote DOM node abbreviated?

+6
source share
1 answer

You probably lost your memory. Use React.unmountComponentAtNode(node)

+8
source

Source: https://habr.com/ru/post/975155/


All Articles