MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / Button

Function Button

examples/sandbox/src/App.tsx:39–46  ·  view source on GitHub ↗
(props: {text: string; onClick: VoidFunction})

Source from the content-addressed store, hash-verified

37})
38
39const Button = (props: {text: string; onClick: VoidFunction}) => {
40 const text = s.createMemo(() => <span>{props.text}</span>)
41 return (
42 <button aria-label={props.text} onClick={props.onClick}>
43 {text()}
44 </button>
45 )
46}
47
48const PassChildren: s.ParentComponent = props => props.children
49

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…