This package provides a Microstate model for state of a TodoMVC component. It includes tests and is published as @microstates/todomvc
package. The purpose of this package is to show how a Microstate can be distributed via NPM. The state can be consumed by projects in different frameworks.
- TodoMVC Microstate
- TodoMVC in React.js - create React sandbox
- TodoMVC in Vue.js - create Vue sandbox
Learn more about Microstates.js at microstates/microstates.js.
npm install --save @microstates/todomvc
or
yarn add @microstates/todomvc
To use this model, you can import it and create a Microstate.
import { create } from 'microstates'
import TodoMVC from '@microstate/todomvc'
let todomvc = create(TodoMVC)
The Microstate comes with tests with 100% coverage.
git clone git@github.com:microstates/todomvc.git
cd todomvc
npm install
npm test