Export
React, HTML, and Astro
What each code export contains, and how to run it.
Choosing an output
All three download as a ZIP. Pick React for an app, HTML for a static site, Astro for a content site.
The styling choice is made in the plugin before the build, not here.
- React
- A Vite project using React 18 and TypeScript, with routing.
- HTML
- Static pages, one shared stylesheet, and small scripts for interaction.
- Astro
- An Astro project with one page per route and a shared stylesheet.
- React
- Vanilla CSS, Tailwind CSS, or Chakra CDN.
- HTML and Astro
- Vanilla CSS or Tailwind CSS.
Downloading
- 1Press Download in the build header
- 2Choose whether to include assets in the ZIP
- 3Press Download ZIP
Include assets bundles the images into the ZIP. Leave it off and they load from a CDN instead, which makes the download smaller.
React file structure
src/
pages/ one folder per page
shared/ reusable sections
routes/ route definitions
styles/ index.cssHTML file structure
index.html
styles.css
assets/
about/
index.htmlRunning it
React and Astro
- 1Unzip
- 2Run npm install
- 3Run npm run dev
HTML needs no build step. Upload the files to any static host.
React is a single page app
Configure your host for SPA fallback, so a deep link like /about serves index.html instead of returning a 404.
- HTML interactions
- Tabs, accordions, sliders, and the mobile menu run on small scripts included in the download.
- React interactions
- These use real React state instead.