Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/tsdown-templates. Collection of tsdown templates
Something went wrong. Try again.
1234567891011121314151617import { createSignal } from 'solid-js'
interface MyButtonProps { type?: 'primary'}
export function MyButton({ type }: MyButtonProps) { const [count, setCount] = createSignal(0) return ( <button class="my-button" onClick={() => setCount(count() + 1)}> my button <br /> type: {type} <br /> count: {count()} </button> )}