reactHonoStarter
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
This app is a starter template for client-side React and server-side Hono.
Get a copy of this starter template by clicking the Remix button in the top-right.
-
The entrypoint is
/backend/index.ts
. That's the backend HTTP server, which also serves the all the frontend assets. -
The client-side entrypoint is
/frontend/index.html
- which in turn imports
/frontend/index.tsx
- which in turn imports the React app from
/frontend/components/App.tsx
.
- which in turn imports
So if you wanted to get a sense of how this app comes together, we suggest reading the files in this order:
/backend/index.ts
-> /frontend/index.html
-> /frontend/index.tsx
-> /frontend/components/App.tsx
- React Hono Example is a bigger example project, with a SQLite database table, queries, client-side CSS, a favicon, and shared code that runs on both client and server.