Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

Button.tsx

11 lines224 Bytes

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>