Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Master Vue.js with Vue School Premium

$25 / month

The Vue.js Master Class

Get access to this course, 18 others, and future Vue.js courses!

Creating Posts using Vuex

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.