How to use the @mpxjs/core.createStore function in @mpxjs/core

To help you get started, we’ve selected a few @mpxjs/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github didi / mpx / examples / mpx-todoMVC / src / store / index.js View on Github external
import { createStore } from '@mpxjs/core'

const store = createStore({
  state: {
    todos: [
      {
        text: '123',
        done: false
      }, {
        text: '123123',
        done: false
      }
    ]
  },
  mutations: {
    addTodo (state, { text }) {
      state.todos.push({
        text,
        done: false

@mpxjs/core

mpx runtime core

Apache-2.0
Latest version published 4 days ago

Package Health Score

79 / 100
Full package analysis

Popular @mpxjs/core functions