/** @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 (
<>
{children}
>
);
}
ss='form'>
Unnamed repository; edit this file 'description' to name the repository. | |
Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
* feat(napi): add `napi_get_value_bigint_words`
* fix(napi): handle `napi_get_value_bigint_words` arr too small
|
|
|