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 so we can create forum posts with an action and mutations.
Remember, that you should never alter the state outside a mutation.