Skip to content

segunadebayo/egghead-zagjs-course

Repository files navigation

Egghead Zag.js Workshop

Welcome to the Egghead.io workshop on Building UI Components with Statecharts. In this course, you will:

  • Learn fundamental concept of state machine, event and transition
  • Model a UI component with state machine
  • Connect state machine logic to UI
  • Manage DOM events in state machines
  • Create custom React hooks with state machines

Zag.js

Getting Started

To run this code in this repo:

  • Clone this repo
  • You need to have pnpm installed. To do this, run npm install -g pnpm.
  • In the repo's directory, run pnpm install
  • Run pnpm dev. You should see this:
VITE v3.1.4  ready in 694 ms

➜  Local:   http://localhost:5173/
➜  Network: use --host to expose

Lessons

Lessons are separated by branches. This branch contains the first set of lesson (01-04) and subsequent lessons are in their respective branches.