---
title: "Discussion on \"How I manage Transition/Animation state with XState\" | Hashnode"
description: "Discussion on \"How I manage Transition/Animation state with XState\". A demo managing React component state using finite state machines. \nThis demo walks you through how I built a smart lightbulb animation using state machines"
url: "https://hashnode.com/posts/how-i-manage-transitionanimation-state-with-xstate/613c24701821961e2551dbe7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I manage Transition/Animation state with XState](https://arielrodriguez.hashnode.dev/how-i-manage-transitionanimation-state-with-xstate?utm_source=hashnode&utm_medium=feed)

A demo managing React component state using finite state machines. This demo walks you through how I built a smart lightbulb animation using state machines

Sep 11, 2021 · 8 min read · arielrodriguez.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#styled-components](https://hashnode.com/tag/styled-components)
-   [#css](https://hashnode.com/tag/css)
-   [#css-animation](https://hashnode.com/tag/css-animation)
-   [#state](https://hashnode.com/tag/state)

## Written by

[Ariel Rodriguez](https://hashnode.com/@ArielRodriguez)

@ArielRodriguez

  
[View profile](https://hashnode.com/@ArielRodriguez)

Papa, Jamstack Developer & Tinkerer based in New York City.

Lately, I've been spending a lot of time learning and implementing micro transitions and animations on web components using state machines to manage component state and have recently had an article featured on Hashnode on XState. I lead a react learning group, we start at the fundamentals, and work our way up through advanced hooks. In a previous life, I served as a company founder within the NYC food scene, making me accustomed to fast-paced environments that require sharp attention to detail. I understand the importance of a team and communication within that team.

## Responses 2

Markdown supported · ⌘↵ to post

[webaoe](https://hashnode.com/@thietkeweb)

[Sep 12, 2021](https://hashnode.com/posts/how-i-manage-transitionanimation-state-with-xstate/613c24701821961e2551dbe7/comment/613dbf4322b7a41dfe5fda12)

[thank](https://webaoe.com/seo-on-page-va-off-page-su-khac-biet-la-gi/)

[Favourite Jome](https://hashnode.com/@Favourite)

[Sep 11, 2021](https://hashnode.com/posts/how-i-manage-transitionanimation-state-with-xstate/613c24701821961e2551dbe7/comment/613ca65d1821961e2551eae7)

Thanks for sharing [Ariel Rodriguez](https://hashnode.com/@ArielRodriguez).

I'm currently following a course and the instructor talked about Finite State Machines, though he isn't using a state machine library like Xstate, but following its concept, while building a game.

So thanks again for enlightening me : )

[Ariel Rodriguez](https://hashnode.com/@ArielRodriguez)

[Sep 11, 2021](https://hashnode.com/posts/how-i-manage-transitionanimation-state-with-xstate/613c24701821961e2551dbe7/comment/613ca65d1821961e2551eae7#reply-613ca87d22b7a41dfe5fc4f8)

Hey [Favourite Jome](https://hashnode.com/@Favourite)!

That course sounds awesome! state machines and game dev go hand in hand. Happy to help!

[Favourite Jome](https://hashnode.com/@Favourite)

[Sep 15, 2021](https://hashnode.com/posts/how-i-manage-transitionanimation-state-with-xstate/613c24701821961e2551dbe7/comment/613ca65d1821961e2551eae7#reply-6141a7864e51f6028be034ef)

Yh, the course is from Frontend Masters, here's the course [Complete Front-End Project: Build a Game](https://frontendmasters.com/courses/front-end-game/) [Ariel Rodriguez](https://hashnode.com/@ArielRodriguez)
