Skip to main content

Quick Start

This guide will help you create and run your first application in minutes. We’ll walk through creating a new project, understanding the structure, and building your first component.

Prerequisites

Before you begin, ensure you have:
  • Node.js 18.x or higher installed on your machine
  • npm, yarn, or pnpm package manager
  • A code editor (we recommend VS Code with TypeScript support)
1

Create a New Project

Use the CLI to scaffold a new project with all the necessary configuration:
The CLI will prompt you to choose:
  • Template: Start with TypeScript (recommended) or JavaScript
  • Styling: Tailwind CSS, CSS Modules, or Styled Components
  • Features: Routing, State Management, Testing utilities
For this quick start, select TypeScript with Tailwind CSS and enable Routing.
2

Explore the Project Structure

Your new project includes everything you need to get started:
Key files:
  • src/App.tsx - Your application’s entry point
  • src/pages/ - File-based routing (each file is a route)
  • src/components/ - Where you’ll build reusable components
3

Start the Development Server

Launch the dev server with hot module replacement:
Your application will be available at http://localhost:3000
Changes to your code will automatically refresh in the browser without losing state.
4

Create Your First Component

Let’s build a simple interactive component. Create a new file src/components/Welcome.tsx:
src/components/Welcome.tsx
This component demonstrates:
  • State management with useState
  • Form handling with controlled inputs
  • Conditional rendering for the greeting message
  • Tailwind CSS for styling
5

Use Your Component

Import and use your new component in src/App.tsx:
src/App.tsx
Save the file and see your changes instantly in the browser!
6

Build for Production

When you’re ready to deploy, create an optimized production build:
This generates a dist/ folder with optimized, minified assets ready for deployment.Preview your production build locally:

Next Steps

Congratulations! You’ve created your first application. Here’s what to explore next:

Components

Learn about component patterns and best practices

Routing

Build multi-page applications with file-based routing

State Management

Manage complex application state effectively

Styling

Explore different styling approaches and theming
Remember to add environment variables to .env.local (not .env) to keep secrets out of version control.

Common First Steps

Add a New Page

Create a file in src/pages/about.tsx:
src/pages/about.tsx

Fetch Data

Use the built-in data fetching utilities:

Getting Help

Stuck? Check out our Installation Guide for detailed troubleshooting or join our community Discord for real-time help.