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

Function Foo

src/script.ts:48–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 );
47};
48export const Foo = () => {
49 const [x, setX] = React.useState(2);
50 const foo = React.createElement(
51 "div",
52 {},
53 React.createElement("article", null),
54 React.createElement("button", {
55 innerText: `another counter, a little deeper: ${x}`,
56 onclick: () => {
57 setX(x + 1);
58 },
59 })
60 );
61 return foo;
62};
63
64export const PropsTest = (props: any) => {
65 const [update, setUpdate] = React.useState(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected