Created
January 23, 2021 23:32
-
-
Save djirdehh/738052a45ef7f7c8671b1cf74dddc395 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { reactive } from "vue"; | |
| export const store = { | |
| state: reactive({ | |
| numbers: [1, 2, 3] | |
| }), | |
| addNumber(newNumber) { | |
| this.state.numbers.push(newNumber); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment