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

Vue/Nuxt tutorial for Sendai

Vue/Nuxt tutorial for Sendai

Yuichiro MASUI

March 20, 2021
Tweet

More Decks by Yuichiro MASUI

Other Decks in Education

Transcript

  1. Frontendͷมભ • jQuery / Prototype.js 
 DOMૢ࡞ • Angular /

    Backbone.js 
 MVCతͳϑϨʔϜϫʔΫ / ςετ • React / Vue 
 Reactive / ViewϨΠϠʔͷΈ
  2. ΫϥΠΞϯτϩδοΫ αʔόαΠυੜ੒ ϒϥ΢β ϩδοΫ (ίϯτϩʔϥ) ϦΫΤετ αʔό ΫϥΠΞϯτ Πϕϯτ (onSubmit)

    React αʔόϩδοΫ HTMLੜ੒෦ (render) HTMLੜ੒෦ (ςϯϓϨʔτ) ը໘Λදࣔ͢ΔͨΊͷঢ়ଶ (setState) ը໘Λදࣔ͢ΔͨΊͷঢ়ଶ (ςϯϓϨʔτม਺)
  3. Vue.js • ݩAngular։ൃऀͷEvan You͕Founder • 2014/2ʹϦϦʔε • "I fi gured,

    what if I could just extract the part that I really liked about Angular and build something really lightweight."
  4. React vs Vue • VirtualDOM,Component,ReactiveͳͲجຊ͸Ұॹ • Reactͷํ͕७ਮ • Vue͸ͪΐͬͱΰνϟΰνϟ •

    ྆ํͱ΋جຊ͸ViewϨΠϠʔ͚ͩͰɺσʔλؔ܎ ͸ผͷπʔϧͱ૊Έ߹͑ΘͤΔඞཁ͋Γ
  5. Nuxt.js • Vue + Vuex + Vue-Router + asyncData +

    ServerSideRendering • ࠓ͸Vueͷඪ४ςϯϓϨʔτ͕Α͘Ͱ͖ͯΔ͔ Βલ΄Ͳॏཁ͡Όͳ͍ • Ͱ΋σΟϨΫτϦߏ଄΍αϯϓϧ͕ࢀߟʹͳ Δ