vue覚書
ソースコード 解説(chivivue) https://book.chibivue.land/ja/00-introduction/030-vue-core-components.html https://book.chibivue.land/ja/10-minimum-example/015-package-architecture.html DI、久々に聞いた、こういうことだったのか。 https://book.chibivue.land/ja/10-minimum-example/035-try-implementing-a-minimum-reactivity-system.html ReactiveEffectはObserverパターン chibivueリアクティブ実装 DevTools https://github.com/vuejs/devtools/discussions/654 省略形 v-bind===>: v-on===>@ スロット スロットとレンダー関数(V2のドキュメントから) 親で指定されたheaderスロットが子コンポーネント(blog-post)のrenderプロパティへレンダー関数として渡されている。 createElementはvnodeを生成する 仮想DOM、レンダー関数、レンダラー 仮想DOM、virtual DOM、vnodeの集合体?、このvnodeの生成にレンダー関数h()を使う const vnode = { type: 'div', props: { id: 'hello' }, children: [ /* 多くの vnode */ ] } Here, vnode is a plain JavaScript object (a "virtual node") representing a <div> element. It contains all the information that we need to create the...