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

Function Repro

src/script.ts:561–578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559};
560
561const Repro = () => {
562 const [toggleInner, setToggleInner] = React.useState(true);
563
564 return React.createElement(
565 "div",
566 {
567 id: "outer-wrapper",
568 style: "border: 2px solid black; padding: 10px; margin: 10px;",
569 },
570 React.createElement("button", {
571 onclick: () => setToggleInner(!toggleInner),
572 innerText: toggleInner ? "Hide Inner" : "Show Inner",
573 }),
574
575 toggleInner && React.createElement("div", { innerText: "pls break" }),
576 React.createElement("div", null)
577 );
578};
579
580const TestContext = React.createContext({ hello: 2 });
581const ContextTest = () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected