• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
petermillspaugh

petermillspaugh

docs

markdown docs site
Public
Like
docs
Home
Code
5
components
4
images
1
pages
6
styles
1
H
index.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 milliseconds.
Sign up now
Code
/
pages
/
vals
/
http
/
jsx.md
Code
/
pages
/
vals
/
http
/
jsx.md
Search
10/16/2025
Viewing readonly version of main branch: v505
View latest version
jsx.md
title:
HTML & JSX
description:
You can use JSX syntax in Val Town to render HTML using React, Preact, Vue, Solid, etc.

To use JSX, you'll need to insert what TypeScript calls a "per-file pragma" - a comment that uses @jsxImportSource to specify where the JSX methods are going to come from. For example, if you're implementing JSX with Preact, the pragma will look like this at the top of your file:

Create val
/** @jsxImportSource https://esm.sh/react */

React

We recommend using React:

Preact

Preact is a great alternative to React:

Vue

Solid

Hono

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.