You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
236 B

2 years ago
  1. import { makeAutoObservable } from "mobx";
  2. class ListStore {
  3. list = ['vue', 'react']
  4. constructor() {
  5. makeAutoObservable(this)
  6. }
  7. addList = () => {
  8. this.list.push('angular')
  9. }
  10. }
  11. export { ListStore }