MCPcopy
hub / github.com/facebook/react / unmount

Function unmount

packages/react-test-renderer/src/ReactTestRenderer.js:585–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583 updateContainer(newElement, root, null, null);
584 },
585 unmount() {
586 if (root == null || root.current == null) {
587 return;
588 }
589 updateContainer(null, root, null, null);
590 // $FlowFixMe[incompatible-type] found when upgrading Flow
591 container = null;
592 root = null;
593 },
594 getInstance() {
595 if (root == null || root.current == null) {
596 return null;

Callers

nothing calls this directly

Calls 1

updateContainerFunction · 0.90

Tested by

no test coverage detected