Check out example codes for "vuejs click". It will help you in understanding the concepts better.

Code Example 1

<button @click="doSumthin">
  Do Something
</button>
<script>
module.exports {
  methods: {
    doSumthin() {
      console.log('did something!');
    }
  },
};
</script>

Code Example 2

<div id="example-2">
  <!-- `greet` is the name of a method defined below -->
  <button v-on:click="greet">Greet</button>
</div>

Learn ReactJs, React Native from akashmittal.com