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

Fresh

 Fresh

新潟WEBアプリケーション勉強会 Vol.1でFreshについて話した資料です。
https://steeq.connpass.com/event/254066/

circled9

July 21, 2022
Tweet

More Decks by circled9

Other Decks in Programming

Transcript

  1. deno • JavaScriptͱTypeScript͕ಈ͘ϥϯλΠϜ • Node.jsͷ࡞ऀ ( Ryan Dahl ) ͕࡞ͬͨ

    • ݱࡏͷ࠷৽൛͸1.23.4 $ deno --version deno 1.23.4 (release, aarch64-apple-darwin) v8 10.4.132.8 typescript 4.7.4 11
  2. deno • Webඪ४ͷػೳΛαϙʔτ͍ͯ͠Δ • fetchͱ͔ • Secure by default •

    ໌ࣔతʹڐՄ͠ͳ͍ͱϑΝΠϧͷಡΈॻ͖ͳͲͷػೳ͕࢖͑ͳ͍ 12
  3. CSR, SSR • ϨϯμϦϯάͷํ๏ͷݺͼํ • ͦΕͧΕҎԼͷ಄จࣈΛऔ͍ͬͯΔ • Client Side Rendering

    • Server Side Rendering • ଞʹ΋SSGͱISR͕͋Δ͕͜͜Ͱ͸ׂѪ • Static Site Generation • Incremental Static Regeneration 15
  4. ͜Μͳײ͡ // ࡶͳΧ΢ϯλʔ const Counter = () => { const

    [count, setCount] = useState(0); const plus = () => setCount(count + 1); const minus = () => setCount(count - 1); return ( <div> <div>{count}</div> <button onClick={plus}>+</button> <button onClick={minus}>-</button> </div> ); }; <!-- Ϩϯμʔ͢Δͱ͜͏ͳΔ --> <div> <div>0</div> <button>+</button> <button>-</button> </div> 19
  5. Preact • Fast 3kB alternative to React with the same

    modern API • ↑ ެࣜΑΓҾ༻ • ܰྔ൛React • hooksͱ͔΋ͪΌΜͱ࢖͑Δ 24