<h2>{{counter}}</h2>
<button on:click="increment2()">+2</button>
<button on:click="decrement2()">-2</button>

<script>
	import { mapActions } from "../../store/actions";

	const { increment2, decrement2 } = mapActions;
	const mapToProps = ({ counter }) => ({ counter });

	export default {
		oncreate() {
			this.connect(mapToProps, mapActions);
		},
		methods: {
			decrement2,
			increment2
		}
	};
</script>