Public
Like
FullstackStarter
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v326View latest version
A minimal example demonstrating:
- React Router for server-side rendering and client-side hydration
- Hono RPC for data fetching with a Hono API
- Simple in-memory number storage
- Server-Side Rendering: Initial HTML is rendered on the server
- Client Hydration: App becomes interactive on the client
- Home Page: Simple landing page with a button to navigate to the Number page
- Number Page: View and update a number using Hono RPC (honorpc)
- Uses React Router's StaticRouter for server-side rendering
- Uses React Router's BrowserRouter for client-side hydration
- The backend stores a number in memory
- The frontend uses Hono RPC to fetch and update the number