aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test/fixtures/render-with-components/src/components/Counter.tsx
blob: f1e239718cf848c673f0aba751630c59ec6b5ea1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import { useState } from 'preact/hooks';

export default function Counter() {
	const [count, setCount] = useState(1);
	return (
		<button id="counter" onClick={() => setCount(count + 1)}>
			{count}
		</button>
	);
}