@microstates/todomvc
v0.12.0
Published
Microstate for TodoMVC Components
Downloads
12
Readme
TodoMVC Microstate
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.
Learn more about Microstates.js at microstates/microstates.js.
Installation
npm install --save @microstates/todomvc
or
yarn add @microstates/todomvc
Getting Started
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)
Tests
The Microstate comes with tests with 100% coverage.
git clone [email protected]:microstates/todomvc.git
cd todomvc
npm install
npm test