// eslint-disable-next-line no-unused-vars import { h } from 'preact' import { useState } from 'preact/hooks' interface Props { initialCount: number } export function Counter({ initialCount }: Props) { const [count, setCount] = useState(initialCount) const increment = () => setCount(count + 1) return (
Current value: {count}
) }