상태관리라이브러리 썸네일형 리스트형 Zustand 상태관리 라이브러리 사용하기 Zustand란?https://zustand.docs.pmnd.rs/getting-started/introduction독일어로 '상태'라는 뜻사용법이 매우 쉽다는 장점이 있다. 상태 변경시 불필요한 리렌더링을 일으키지 않는다보일러플레이트가 매우 작다. redux Devtools를 사용할수 있다. // zustand 공식 사이트의 예시import { create } from 'zustand'const useStore = create((set) => ({ count: 1, inc: () => set((state) => ({ count: state.count + 1 })),}))function Counter() { const { count, inc } = useStore() return ( .. 더보기 이전 1 다음