This project is a starter Preact app using Vite, preact-iso for routing, and @preact/signals for state management.
- Preact + TypeScript
- Routing with preact-iso
- Home and Contact pages
- Home page demonstrates a signal and a component that shows and updates its value
Install dependencies:
yarn install
Start the development server:
yarn dev
Open http://localhost:5173 to view the app.
src/pages/Home.tsx— Home page with a signal and a component to show/update itsrc/pages/Contact.tsx— Contact pagesrc/components/ShowSignal.tsx— Component to show and increment signalasrc/app.tsx— App entry with router
This project was bootstrapped with Vite and Preact.