Svelte5
Rune 문법Svelte5의 반응성 관리를 위한 키워드기존 문법에 비해 더 명시적인 문법을 제공rune 문법$state$derived$effect$props$bindable$inspect$host$state컴포넌트에서 사용되는 상태를 의미함let 키워드로 변수처럼 선언되는 상태를 $state로 선언$derivedstate의 값에서 파생한 다른 값을 만들 수 있음$derived.by좀더 복잡한 값을 사용할 경우 함수로 넘겨줄 수 있음$effect특정 변수 변경에 따른 부수 효과를 정의V4 count++}>increase count--}>decrease count : {count} V5 count++}>increase count--}>decrease count ..
카테고리 없음
2025. 4. 13. 16:42