JSFiddle - React, Tailwind, and code Playground

by unofficial

HTML

<script src="https://cdn.bootcss.com/vue/2.4.1/vue.min.js"></script>
<textarea id="textarea" name="" id="" cols="30" rows="10" @keydown.enter="sendMsg"></textarea>

JavaScript

new Vue({
    el: '#textarea',
    methods: {
      sendMsg(e) { // can use keypress or keydown
        e.preventDefault();
      }
    }
})