const Counter = resource(() => {
const [count, setCount] = tapState(0);
return {
count,
increment: () => setCount((c) => c + 1),
};
});
Documents
introduction
introduction
Type
External
Status
Published
Created
Mar 17, 2026
Updated
Mar 17, 2026