đšī¸ Levels: đ Intermediate
âŗ Duration: 1.5 hours
đ¤ Price: Free
đ§âđģ Learning Platform: Egghead.io
đ§âđ Certificate: No
đ Key Learning Outcomes
- 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.
đ¨âđĢ About the Course
This course teaches how to build a pin-input component with state machines, Zag.js, and React. It covers modeling a UI component with state machines, implementing them in a framework agnostic way using Zag.js, and connecting the logic to the UI component.
đ¯ Target Audience
- Ideal for developers unfamiliar with state machines who want to learn how to use them to build UI components with ease.
â Requirements
- Basic understanding of React and JavaScript is recommended.
đ Course Content
- Introduction to Statechart Driven UI Components with Zag.js.
- Model Finite Number of State and Events with State Machines.
- Model the Basic Events, Actions, and Transitions of a Pin Input Component.
- Set up a React Zag.js Project with Vite.
- Style a Pin Input through Data Attributes in React.
- Create and Visualize a Pin Input State Machine with TypeScript and Zag.js.
- Connect Zag.js Machine Logic to React UI through the useMachine Hook.
- Implement a State Machine Action for Setting Input Focus in Zag.js.
- Trigger Side Effects in a Zag.js State Machine with the watch Property.
- Schedule Input Focus with requestAnimationFrame to Handle Multiple DOM Mutations in Zag.js.
- Spread Values Across a Pin Input Field in a Zag.js State Machine.
- Implement Conditional Logic in a Zag.js Action to Enforce a Single Character Per Input.
- Trigger Side Effects using Zag.js computed and watch Properties.
- Submit Pin Input Values in a Form with a Hidden Input.
- Refactor Zag.js State Machine Powered Pin Component Functionality to a Custom React Hook.
Drop a comment
Statechart Driven UI Components with Zag.js by Segun Adebayo
Log in to leave a feedback
Loginđ Psst! Interested in More React Courses?
JavaScriptReact
A Tour of JavaScript & React PatternsVideo
by Lydia Hallie
đšī¸ Levels: đ Intermediate
âŗ Duration: 3.5 hours
đ¤ Price: Subscription
đ§âđģ Learning Platform: Frontend Masters
React
Intermediate React, v5Video
by Brian Holt
đšī¸ Levels: đ Intermediate
âŗ Duration: 6 hours
đ¤ Price: Subscription
đ§âđģ Learning Platform: Frontend Masters
React
React Crash Course with HooksVideo
by Chris Achard
đšī¸ Levels: đą Beginner
âŗ Duration: 0.5 hours
đ¤ Price: Free
đ§âđģ Learning Platform: Egghead.io