reactant-model
TypeScript icon, indicating that this package has built-in type declarations

0.122.0 • Public • Published

reactant-model

Node CI

A model lib for Reactant

Usage

npm install reactant-model
# or
yarn add reactant-model

Example

import { model } from 'reactant-model';

const counter = model({
  state: {
    count: 0,
  },
  actions: {
    increase: (num) => (state) => {
      state.count += num;
    },
  }
});

You can visit reactant.js.org for more documentation.

Package Sidebar

Install

npm i reactant-model

Weekly Downloads

4

Version

0.122.0

License

MIT

Unpacked Size

21.6 kB

Total Files

13

Last publish

Collaborators

  • unadlib