DEV Community

Discussion on: 8 secrets Vue Developers must know

anduser96 profile image
Andrei Gatej

Your snippet. There’s a likelihood of me doing something wrong though. I’m rendering my component using a render function.

Thread Thread
rolanddoda profile image
Roland Doda Author

Since we are talking about functional components the full code snippet should be:

<template functional>
  <button v-on="listeners">Click me </button>
</template>
Thread Thread
anduser96 profile image
Andrei Gatej

I’ll give it another try tomorrow and I’ll let you know how it went!