UNPKG

cumqueoptio

Version:

The meta-framework suite designed from scratch for frontend-focused modern web development.

24 lines (21 loc) 341 B
import { model } from '@modern-js-reduck/react'; export const modelA = model('modelA').define({ state: { a: 1, }, actions: { incA(s) { return { a: s.a + 1 }; }, }, }); export const modelB = model('modelB').define({ state: { b: 1, }, actions: { incB(s) { return { b: s.b + 1 }; }, }, });