Preact + Vite + Signals + preact-iso Example

This project is a starter Preact app using Vite, preact-iso for routing, and @preact/signals for state management.

Features

  • Preact + TypeScript
  • Routing with preact-iso
  • Home and Contact pages
  • Home page demonstrates a signal and a component that shows and updates its value

Getting Started

Install dependencies:

yarn install

Start the development server:

yarn dev

Open http://localhost:5173 to view the app.

Project Structure

  • src/pages/Home.tsx — Home page with a signal and a component to show/update it
  • src/pages/Contact.tsx — Contact page
  • src/components/ShowSignal.tsx — Component to show and increment signal a
  • src/app.tsx — App entry with router

This project was bootstrapped with Vite and Preact.