FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
project logo
jxnblkreact-spa-starter
Minimal React SPA example built in Val Town
Public
Like
react-spa-starter
Home
Code
4
S
App.tsx
README.md
S
client.tsx
H
http.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
README.md

React SPA Starter

Minimal React SPA example for Val Town. View Demo

Remix this project to start building your own React app

How it works

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:

  • React Starter
  • React Streaming Starter
Code
S
App.tsx
README.md
S
client.tsx
H
http.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.