Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

useTinyStateMachine

A lightweight react hook to create and work with state machines

CircleCI npm bundle size (minified + gzip) Codecov

Install

Import

yarn add use-tiny-state-machine

Motivation

This library is heavily inspired by xstate. XState works beautifully for most use cases but the size of the library comes around to 12.2KB minified and gzipped, which I've found is a bit hard to justify using in a small project. This library was written for the sole purpose of being a tiniest version of xstate focused on its usage as a react hooks.

Learn more