svelte

    [Svelte-demo (2)] 이벤트 핸들링

    Hello {name}! {isRed = !isRed}} on:mouseenter={() => {name = 'enter'}} on:mouseleave={() => {name = 'leave'}} > Box! on: (on directive)은 addEventListener에 붙일 수 있는 모든 이벤트들을 다 작성할 수 있다. {text} {text = e.target.value}} /> {text = 'duckracoon'}}> 방법1 {text = 'duckracoon'}}> 방법2 양방향 바인딩

    [Svelte] 개발환경

    VSCode에서 환경을 만들어보려한다. Svelte를 코딩하기위해서는 Svelte Template을 개발환경으로 가져와야하는데 그러기위해서 Node.js가 설치되어야한다. v14.15.5를 사용하고 있고 npm은 v6.14.11이다. https://github.com/sveltejs/template GitHub - sveltejs/template: Template for building basic applications with Svelte Template for building basic applications with Svelte - GitHub - sveltejs/template: Template for building basic applications with Svelte github.com ht..