react-router-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 milliseconds.
http.tsx
https://nbbaier--f6917457e91a4206bd000324f558fa3f.web.val.run
Minimal React Router starter example for Val Town
The http.tsx
file is the main server that responds with an HTML stream.
The HTML includes a <script type="module">
tag that loads the client.tsx
file to hydrate the app
with client-side routing provided by React Router's declarative mode.