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

Function update

packages/react-reconciler/src/__tests__/ReactNewContext-test.js:1467–1476  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

1465
1466 const UPDATE = 'UPDATE';
1467 function update(key, value) {
1468 return {
1469 type: UPDATE,
1470 key,
1471 value,
1472 toString() {
1473 return `update('${key}', ${value})`;
1474 },
1475 };
1476 }
1477
1478 function randomInteger(min, max) {
1479 min = Math.ceil(min);

Calls

no outgoing calls

Tested by

no test coverage detected