Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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