Skip to content

Web apps · React

React starter

A clean React + TypeScript + Tailwind single-page app. The default target for AI generation.
React starter starter, as built from its own files
Starter screenshot captured from this template's own build at 1440×900. It shows the template as it ships, not output generated from a prompt.

What you get

The smallest useful starting point: one App component, Tailwind CSS v4 wired through the Vite plugin, strict TypeScript, and nothing else to delete. Most AI generation runs start here because the agent can add pages, state and components without fighting an opinionated structure.

Files, exactly as copied.

Exactly what is copied into a new project: 9 files, nothing generated.

Raw data: GET /api/v1/templates/vite-react-starter

src/App.tsx
src/App.tsx
import { useState } from "react"; const ideas = [  "Add a pricing page with three plans",  "Turn this into a habit tracker with weekly streaks",  "Show a dashboard of signups from a CSV I paste in",]; export default function App() {  const [count, setCount] = useState(0);  return (    <main className="relative min-h-screen overflow-hidden bg-slate-50 text-slate-900">      {/* Decorative background: a faint grid and one soft colour field. */}      <div        aria-hidden="true"        className="pointer-events-none absolute inset-0 [background-image:linear-gradient(to_right,rgb(15_23_42/0.05)_1px,transparent_1px),linear-gradient(to_bottom,rgb(15_23_42/0.05)_1px,transparent_1px)] [background-size:48px_48px] [mask-image:radial-gradient(ellipse_at_50%_35%,black_25%,transparent_70%)]"      />      <div aria-hidden="true" className="pointer-events-none absolute left-1/2 top-[-20rem] h-[38rem] w-[64rem] -translate-x-1/2 rounded-full bg-gradient-to-tr from-blue-200 via-sky-100 to-rose-200 opacity-70 blur-3xl" />       <div className="relative mx-auto flex min-h-screen max-w-3xl flex-col items-center justify-center px-6 py-16 text-center">        <span className="inline-flex items-center gap-2 rounded-full border border-slate-200 bg-white/80 px-3 py-1 text-xs font-medium text-slate-600 shadow-sm backdrop-blur">          <span className="h-1.5 w-1.5 rounded-full bg-emerald-500" />          React 19 · TypeScript · Tailwind CSS v4        </span>        <h1 className="mt-8 text-5xl font-semibold tracking-tight text-slate-900 sm:text-6xl">Your app starts here.</h1>        <p className="mt-5 max-w-xl text-balance text-lg leading-relaxed text-slate-600">          A clean starting point with nothing to delete. Describe what you want to build in the Codexa chat and the agent edits these files for you.        </p>        <div className="mt-9 flex flex-wrap items-center justify-center gap-3">          <button            onClick={() => setCount((c) => c + 1)}            className="rounded-xl bg-slate-900 px-5 py-3 text-sm font-medium text-white shadow-lg shadow-slate-900/10 transition hover:bg-slate-800 active:scale-[0.98]"          >            Clicked {count} {count === 1 ? "time" : "times"}          </button>          <a href="https://react.dev/learn" target="_blank" rel="noreferrer" className="rounded-xl border border-slate-200 bg-white px-5 py-3 text-sm font-medium text-slate-700 shadow-sm transition hover:bg-slate-50">            Learn React          </a>        </div>         <div className="mt-14 w-full max-w-xl rounded-2xl border border-slate-200 bg-white/80 p-2 text-left shadow-xl shadow-slate-900/5 backdrop-blur">          <p className="px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wider text-slate-400">Try asking for</p>          <ul>            {ideas.map((idea) => (              <li key={idea} className="flex items-center justify-between gap-4 rounded-xl px-3 py-2.5 text-sm text-slate-700 transition hover:bg-slate-50">                <span>“{idea}”</span>                <span aria-hidden="true" className="text-slate-300">↵</span>              </li>            ))}          </ul>        </div>         <p className="mt-10 text-xs text-slate-400">          Edit <code className="rounded bg-slate-100 px-1.5 py-0.5 font-mono text-slate-600">src/App.tsx</code> and save to see your changes.        </p>      </div>    </main>  );}

Remix

Remix this template.

Describe what to change and the agent starts from React starter's files. The box is already started for you: finish “Start from React starter and …”

Agent ready

Creates a free account first; your idea is carried over.

Dependencies

Documented from the template's package.json. The runtime has a prebuilt dependency set for Vite + React + TypeScript, so installs are fast.

  • react^19.1.0
  • react-dom^19.1.0
  • vite^6.3.0
  • @vitejs/plugin-react^4.4.0
  • tailwindcss^4.1.0
  • @tailwindcss/vite^4.1.0
  • typescript^5.8.0

How it runs

Framework
Vite + React + TypeScript
Dev command
npm run dev
Build command
npm run build
Output directory
dist
Port
5173
Entry route
/

Projects run in an isolated sandbox with a live preview. Read the projects documentation for settings, snapshots and deployment.

All templates

Build on React starter

Create a free account, start from this template, and ask the AI agent to turn it into your app.