/** @jsxImportSource preact */ import { useState } from 'preact/hooks'; /** A counter written with Preact */ export function PreactCounter({ children }) { const [count, setCount] = useState(0); const add = () => setCount((i) => i + 1); const subtract = () => setCount((i) => i - 1); return ( <>
{count}
{children}
); } a href='/'>index : astro
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/examples/framework-react/public (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-05-11[create-astro] Finalize developer experience... with gradients 🚀 (#3313)Gravatar Ben Holmes 5-23/+123