Skip to main content

Counter Demo

A simple counter demonstrating reactive signals and event handlers

About This Demo

This demo showcases the basic building blocks of Xote:

  • Signals - Reactive state that automatically notifies dependents when changed
  • Event Handlers - Functions that respond to user interactions
  • Reactive Text - Text that updates automatically when signals change

The counter uses a single signal to track the count value. When you click the buttons, event handlers update the signal, and the displayed count updates automatically.