生命周期方法在 hyperapp v2 中如何工作?为什么我在控制台中看不到“你好”?
import { h, app } from "hyperapp";
app({
init: { name: 'world' },
view: ({ name }) => h('div', {
onCreate: () => console.log('hello')
}, `hello ${name}!!!`),
node: document.getElementById("app")
});