YoVDO

Complex State Management in React with Jotai and XState

Offered By: egghead.io

Tags

React Courses Web Development Courses XState Courses

Course Description

Overview

Jotai's state management is primitive and flexible. This gives you room to build, compose, and share state throughout your application exactly how you need it.
This flexibility can become hard to manage when you have complex requirements that span across a number of states your application can be in.
Jotai lets you leverage other state management solutions through integrations so that you can solve the problem you're facing exactly how you need to.
One of those integrations is XState. XState gives you a safe abstraction to enumerate and handle the complex states your application can be in.
With Jotai + XState, you get the flexibility and ease of use of Jotai with the power of XState.
XState is a sophisticated library to provide a better and safer abstraction for state management.

Syllabus

  • Handle Complex State in Jotai with XState using atomWithMachine
  • Derive Jotai Atom State from Complex State Managed in Xstate
  • Share and Isolate XState State using Jotai Provider
  • Provide XState with Initial Values through Jotai Provider
  • Initialize a Xstate Machine with Jotai Atom in Atom Pattern

Taught by

Daishi Kato

Related Courses

Introduction to ReactJS
Microsoft via edX
Front-End Web Development with React
The Hong Kong University of Science and Technology via Coursera
Multiplatform Mobile App Development with React Native
The Hong Kong University of Science and Technology via Coursera
Client-based Web Applications development: ReactJS & Angular
Universidad Politécnica de Madrid via Miríadax
React
Udacity