社内勉強会の資料デス(wipデス) ■ Vue 3から新しく追加されるもの- Composition API - Teleport - Fragment - Emit Component Option■ Composition API Vue 3の目玉機能。React Hooks的な関数ベースで状態の作成・監視などができる。Custom Hooks的なこともできる。 Composition APIのCustom Hooks集のライブラリもある(https://github.com/antfu/vueuse) 触ってみるのが一番早い(ハンズオン形式で触ってみる) ↓ Viteで作った雛形 app.component('modal-button', { template: ` <button @click="modalOpen = true"> Open full screen modal!
![Vue3 メモ|いえもん](https://cdn-ak-scissors.b.st-hatena.com/image/square/043c80317140bac7910181c77b8e71bbee7dfaea/height=288;version=1;width=512/https%3A%2F%2Fassets.st-note.com%2Fproduction%2Fuploads%2Fimages%2F9189472%2Fprofile_85e618bad16b2574294d3e382dc589f3.jpeg%3Ffit%3Dbounds%26format%3Djpeg%26quality%3D85%26width%3D330)