Age | Commit message (Expand) | Author | Files | Lines |
---|---|---|---|---|
2023-07-04 | [tls] fix servername (#3513) | 4 | -8/+109 | |
2023-07-04 | Add alias for readBigUInt64BE ... (#3514) | 2 | -4/+58 | |
2023-07-04 | reduce count | 1 | -2/+2 | |
2023-07-04 | bump | 3 | -2/+2 | |
2023-07-04 | Fix crash | 1 | -5/+8 |
import { useState } from 'preact/hooks'; /** a counter written in Preact */ export function PreactCounter({ children }) { const [count, setCount] = useState(0); const add = () => setCount((i) => i + 1); const subtract = () => setCount((i) => i - 1); return ( <>
{count}
aboutsummaryrefslogtreecommitdiff |
Age | Commit message (Expand) | Author | Files | Lines |
---|---|---|---|---|
2023-07-04 | [tls] fix servername (#3513) | 4 | -8/+109 | |
2023-07-04 | Add alias for readBigUInt64BE ... (#3514) | 2 | -4/+58 | |
2023-07-04 | reduce count | 1 | -2/+2 | |
2023-07-04 | bump | 3 | -2/+2 | |
2023-07-04 | Fix crash | 1 | -5/+8 |