This example demonstrates how to build interactive client-side components and use programmatic navigation hooks in Ranu.js.
- Client hydration: Standard React 19 hooks (
useState,useEffect) executing on the browser client - Navigation hooks:
useRouter(): Providespush(url),replace(url),back(),forward()usePathname(): Returns current URL pathnameuseSearchParams(): Returns URL search query parameters
├── app/
│ ├── components/
│ │ ├── counter.tsx # Interactive counter with useState
│ │ └── text-filter.tsx # Live search input filter
│ ├── layout.tsx
│ ├── navigate/
│ │ └── page.tsx # Programmatic navigation hooks
│ └── page.tsx # Client components overview
├── package.json
├── ranu.config.ts
└── tsconfig.json
pnpm dev