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

0.106.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

18

Version

0.106.0

License

MIT

Unpacked Size

21.5 kB

Total Files

13

Last publish

Collaborators

  • unadlib