{"id":21017755,"url":"https://github.com/typeonce-dev/xstate-complete-getting-started-guide","last_synced_at":"2025-05-15T06:31:26.522Z","repository":{"id":250479140,"uuid":"834460633","full_name":"typeonce-dev/xstate-complete-getting-started-guide","owner":"typeonce-dev","description":"Complete XState getting started course: learn how to use all the features of XState to build powerful state charts and actor systems 🚀","archived":false,"fork":false,"pushed_at":"2024-10-28T04:00:12.000Z","size":74,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T05:04:51.992Z","etag":null,"topics":["react","state-machine","state-management","typescript","use-effect","use-reducer","xstate","xstate-v5"],"latest_commit_sha":null,"homepage":"https://www.typeonce.dev/course/xstate-complete-getting-started-guide","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typeonce-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-27T10:36:26.000Z","updated_at":"2025-02-23T19:52:17.000Z","dependencies_parsed_at":"2024-11-19T10:24:30.484Z","dependency_job_id":"92cdfc94-d63b-4b1c-9c58-cb93573d51ba","html_url":"https://github.com/typeonce-dev/xstate-complete-getting-started-guide","commit_stats":null,"previous_names":["typeonce-dev/xstate-complete-getting-started-guide"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typeonce-dev%2Fxstate-complete-getting-started-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typeonce-dev%2Fxstate-complete-getting-started-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typeonce-dev%2Fxstate-complete-getting-started-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typeonce-dev%2Fxstate-complete-getting-started-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typeonce-dev","download_url":"https://codeload.github.com/typeonce-dev/xstate-complete-getting-started-guide/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254288036,"owners_count":22045862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","state-machine","state-management","typescript","use-effect","use-reducer","xstate","xstate-v5"],"created_at":"2024-11-19T10:21:37.769Z","updated_at":"2025-05-15T06:31:26.236Z","avatar_url":"https://github.com/typeonce-dev.png","language":"TypeScript","readme":"# XState: Complete getting started guide\nThis repository contains all the code for the course [XState: Complete Getting Started Guide](https://www.typeonce.dev/course/xstate-complete-getting-started-guide).\n\nThe app is implemented using typescript. You can get started by forking/cloning the repository and installing the dependencies:\n\n```sh\npnpm install\n```\n\n***\n\n## Course content\n\n[`xstate`](https://xstate.js.org/) is the last state management library you will ever need.\n\n`xstate` leverages [state charts](https://stately.ai/docs/state-machines-and-statecharts) to model UI state:\n- json-like object to describe states and transitions\n- Define functions to execute between transitions (`actions`)\n- Orchestrate async effects with the [actor model](https://stately.ai/docs/actor-model) (`actors`)\n- Powerful typescript support\n- Framework agnostic\n\n## Course content\n\nThe course starts from the classic way of handling state and effects using `useState` and `useEffect`. We learn why this model is flawed and what problem it introduces.\n\nWe then refactor the same logic using `xstate`. This allows to understand the state chart model and how to refactor plain react code to use `xstate`.\n\nThe rest of the course will present different example of UI state implemented using `xstate`. Each module will introduce new features of `xstate` to show how we can build even complex use cases with ease.\n\n\n### How the course is organized\n\nThe course is organized in small self-contained lessons. Each lesson introduces 1 single new concept.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypeonce-dev%2Fxstate-complete-getting-started-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypeonce-dev%2Fxstate-complete-getting-started-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypeonce-dev%2Fxstate-complete-getting-started-guide/lists"}