Public
Like
react-spa-starter
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.
Minimal React SPA example for Val Town. View Demo
Remix this project to start building your own React app
The http.tsx
file is the main entry point and serves the app.
It returns a static HTML string response that includes the client-side JavaScript module in client.tsx
.
The client.tsx
module hydrates the React app on the client.
The App.tsx
file is the root component of the React app.
You can add more components and functionality as needed.
Note that this version does NOT handle server-side rendering (SSR). Using one of the versions with SSR is highly recommended: