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

サービスにSvelteを採用した経緯とその理由 - レバレジーズ x ココナラ x ニフティ 合同フロントエンド勉強会

サービスにSvelteを採用した経緯とその理由 - レバレジーズ x ココナラ x ニフティ 合同フロントエンド勉強会


Resources

レバレジーズ x ココナラ x ニフティ 合同フロントエンド勉強会

https://nifty.connpass.com/event/288706/

More Decks by ニフティ株式会社

Other Decks in Programming

Transcript

  1. Jinja2(テンプレートのみ抜粋) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Hello, {{

    name }}!</title> </head> <body> <main> <h1>Hello, {{ name }}!</h1> <main> </body> </html>
  2. React import React, { useState } from 'react'; function CounterButton()

    { const [count, setCount] = useState(0); function handleClick() { setCount(count + 1); } return ( <button onClick={handleClick}> Clicked {count} {count === 1 ? 'time' : 'times'} </button> ); } export default CounterButton;
  3. Svelte <script> let count = 0; function handleClick() { count

    += 1; } </script> <button on:click={handleClick}> Clicked {count} {count === 1 ? 'time' : 'times'} </button>