import { useState } from 'react';
import './Counter.css';
export default function Counter({
children,
count: initialCount,
}: {
children: JSX.Element;
count: number;
}) {
const [count, setCount] = useState(initialCount);
const add = () => setCount((i) => i + 1);
const subtract = () => setCount((i) => i - 1);
return (
<>
{children}
>
);
}
'form'>
Unnamed repository; edit this file 'description' to name the repository. | |
Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
cc @Electroid @colinhacks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If multiple actions are running, sometimes the cache is poisoned from another action. We need to fix this, but this is an interim measure to make actions less flaky
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|