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

Function PropsTest

src/script.ts:64–79  ·  view source on GitHub ↗
(props: any)

Source from the content-addressed store, hash-verified

62};
63
64export const PropsTest = (props: any) => {
65 const [update, setUpdate] = React.useState(false);
66 return React.createElement(
67 "div",
68 { innerText: "hi" },
69 React.createElement("button", {
70 innerText: "trigger update",
71 onclick: () => {
72 // console.log('el', );
73
74 setUpdate(!update);
75 },
76 }),
77 ...props.children
78 );
79};
80
81export const IsAChild = () => {
82 return React.createElement("div", { innerText: "im a child!" });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected