What is mapState?

mapState is a helper that simplifies creating a computed property that reflects the value of a given state . Similarly: mapGetters is a helper that simplifies creating a computed property that reflects the value returned by a given getter.

Read more