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

Function RenrenderedChild

src/script.ts:544–559  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

542};
543
544const RenrenderedChild = () => {
545 const [x, setX] = React.useState(10);
546 return React.createElement(
547 "div",
548 {
549 style: "color:blue",
550 },
551 React.createElement("button", {
552 innerText: "re-render child" + x,
553 onclick: () => {
554 setX(x + 1);
555 },
556 // style: "color: orange",
557 })
558 );
559};
560
561const Repro = () => {
562 const [toggleInner, setToggleInner] = React.useState(true);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected