Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Vite でお手軽 Vue.js の環境構築

SAW
June 15, 2022

Vite でお手軽 Vue.js の環境構築

フロントエンドLT会 - vol.7 の発表資料です。

SAW

June 15, 2022
Tweet

More Decks by SAW

Other Decks in Programming

Transcript

  1. 7VFKTͷ$PNQPTJUJPO"1* ैདྷͷ0QUJPOBM"1*ͱ͸େ෯ʹҟͳΔ৽͍͠"1* ैདྷͷdata methodsͳͲ͕setup()಺ʹهड़͞ΕΔ thisΛهड़͢Δඞཁ͕ͳ͘ͳͬͨ <template> <main> <div v-for="item in

    items" :key="item.id"> <p>{{ item.name }}</p> </div> </main> </template> ςϯϓϨʔτଆ <script lang="ts"> export default defineComponent({ setup() { const state = reactive<State>({ items: [{ id: 1, name: 'vite' }], }); return { state }; }, }); </script> εΫϦϓτଆ