|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/introduction-to-state-machines-with-xstate-and-react/
课程评论:没有评论
课程名称:使用 XState 和 React 的状态机入门 课程概述: 本课程介绍使用 JavaScript 构建有限状态机。状态机能够简单明了地描述复杂应用,使其易于处理且减少错误。状态机可以与 React 轻松集成,从而为 React 应用程序的状态管理提供全新的方法。本课程展示了状态机的一些基本概念及其与 XState 的应用,还包含多个编码示例,帮助学生更好地理解该主题。 课程议程: - 状态机介绍 - 状态、事件与转换 - 动作 - 上下文 - 保护条件 - 关于转换的更多内容 - 调用服务 - 调用机器 - 延迟 除了理论讲解,我们还将编写一些实际示例,如: - 带自动播放选项的视频播放器 - 处理异步请求的 Fetch 机器 - 带去抖动的搜索组件 通过本课程,学生将掌握状态机的基本原理,并能够在 React 应用中有效地应用这些知识。
This course is an introduction to finite state machines built with Javascript. State machines can describe complex applications straightforwardly, which makes them intuitive to work with and less error-prone. State machines can be easily integrated with React, which allows us to take a whole new approach for state management in React applications.This course shows some basic concepts about state machines and their usage with XState. Also, it contains multiple coding examples, which allow students to have a better understanding of this topic.Agenda:Introduction to state machinesStates, events, and transitionsActionsContextGuardsMore on transitionInvoking servicesInvoking machinesDelays Alongside the presentations, we will also code some real-world examples, like:Video player with autoplay optionFetch machine for handling async requestsSearch component with debounce