MCPcopy Create free account
hub / github.com/TanStack/query / Button

Function Button

examples/preact/suspense/src/components/Button.tsx:3–11  ·  view source on GitHub ↗
({
  children,
  onClick,
}: {
  children: ComponentChildren
  onClick: () => void
})

Source from the content-addressed store, hash-verified

1import type { ComponentChildren } from 'preact'
2
3export default function Button({
4 children,
5 onClick,
6}: {
7 children: ComponentChildren
8 onClick: () => void
9}) {
10 return <button onClick={onClick}>{children}</button>
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected