Vue/3/Render Function Api

1.0.1Last update Jul 24, 2024
by@Codemod
Vue

In Vue 3.x, h is now globally imported instead of being automatically passed as an argument. This codemod migrates the render function API to be compatible with Vue 3.x.

Before

export default {
render(h) {
return h('div')
}
}

After

import { h } from 'vue'
export default {
render() {
return h('div')
}
}

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now