import { useState } from 'react';
/** A counter written with React */
export function Counter({ children }) {
const [count, setCount] = useState(0);
const add = () => setCount((i) => i + 1);
const subtract = () => setCount((i) => i - 1);
return (
<>
{children}
>
);
}
ndex : astro |
Unnamed repository; edit this file 'description' to name the repository. | |
Age | Commit message (Collapse) | Author | Files | Lines |
|
* Deprecate simple object from endpoints
* Update changeset
* Add missing Response return
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
* Update .changeset/clever-beds-notice.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
|
|
|
|
|
|
|
|
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
|
|
|
|
|
|
|
* fix scroll restoration issue on webKit browsers
* add changeset
* Update .changeset/shaggy-socks-glow.md
* Update .changeset/shaggy-socks-glow.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
|
|
* rename internal middleware id
* add changeset
|
|
Co-authored-by: Eva Decker <itsevadecker@gmail.com>
|
|
|
|
|
|
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
|
|
|
|
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|