The Composition API Masterclass is coming soon!
Sign-up for the Vue.js Masterclass 2024 Edition.
In this Vue.js tutorial, we’ll refactor the addPost method into actions and mutations.
Remember, that you should never alter the state outside a mutation.