MCPcopy Create free account
hub / github.com/RobPruzan/react-scratch / DeadParent

Function DeadParent

src/script.ts:525–542  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

523 );
524};
525const DeadParent = () => {
526 const [x, setX] = React.useState(0);
527 return React.createElement(
528 "div",
529 {
530 style: "color:blue",
531 },
532 React.createElement("button", {
533 innerText: "parent dies" + x,
534 onclick: () => {
535 setX(x + 1);
536 },
537 style: "color: orange",
538 }),
539 React.createElement(ConditionalTest, null),
540 React.createElement(RenrenderedChild, null)
541 );
542};
543
544const RenrenderedChild = () => {
545 const [x, setX] = React.useState(10);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected