@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 07:15 UTC

main
tsx 17 lines 447 Bytes
Raw
1 "use client";
2
3 import { useState } from "react";
4
5 /**
6 * Lives in the (static) layout: client-side state here must survive waku's
7 * client navigation, because the router keeps the layout mounted while
8 * swapping page content.
9 */
10 export function NavCounter() {
11 const [count, setCount] = useState(0);
12 return (
13 <button data-testid="nav-counter" onClick={() => setCount((value) => value + 1)}>
14 nav-count: {count}
15 </button>
16 );
17 }