Skip to content
Advertisement

Vue 3 Render Function how to set up v-model and onClicks

Does anybody here have experience with Vue 3 Render Function? I don’t know how to set up the v-model and on clicks, the documentation on Vue 3 somewhat kinda useless and lacks practical usage examples.

Maybe someone has a sample code?

Advertisement

Answer

If you want to emulate the v-model directive in the render function try something like :

JavaScript

which is equivalent to <input v-model="test" />

JavaScript
JavaScript
Advertisement