This is an example project demonstrating how to use the ngx-state-machine. library with React. The project showcases:
- Injecting the StateMachine using Angular Dependency Injection
 - Subscribing to state changes using the injected StateMachine.
 - Dispatching commands using the injected StateMachine.
 - Unit testing Angular components that use StateMachine.
 
The ngx-state-machine is an Angular specific wrapper for the core library, simple-state-machine.
- State Management: Powered by 
@state-management/state-machine-react, this project integrates a simple yet powerful state management system. - Injecting StateMachine: Includes examples of injecting the StateMachine using Angular dependency injection.
 - State Manipulation: Demonstrates 
dispatchingcommands to execute logic and modify state, andobservingstate changes and modifying UI accordingly. - Unit Testing: Demonstrates how to unit test Angular components that use state management.
 
Make sure you have the following installed:
- Node.js (16.x or later)
 - npm (8.x or later)
 
Clone the repository and install the required dependencies:
npm installnpm run startnpm run test