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

Function update

packages/react-test-renderer/src/ReactTestRenderer.js:579–584  ·  view source on GitHub ↗
(newElement: React$Element<any>)

Source from the content-addressed store, hash-verified

577 return toTree(root.current);
578 },
579 update(newElement: React$Element<any>): number | void {
580 if (root == null || root.current == null) {
581 return;
582 }
583 updateContainer(newElement, root, null, null);
584 },
585 unmount() {
586 if (root == null || root.current == null) {
587 return;

Callers

nothing calls this directly

Calls 1

updateContainerFunction · 0.90

Tested by

no test coverage detected