onchange method be written in functional programming?
render: (h, params) => {
return h("div", [
h("Switch",
{
props: {
size:"large",
},
on: {
}
},
)
],
)
}