Zustand์ get/set ๋ฉ์๋ ๊ด๋ จ ์ง๋ฌธ ๋๋ฆฝ๋๋ค.
๋ณ์์ด๋ฆ๋๋ฌธ์ ์คํด๊ฐ ์๋๊ฑธ๊น์ increase: () => { const num = get().count; // ํ์ฌ store์ count ๊ฐ ๊ฐ์ ธ์ค๊ธฐ.. ๊ฐ์ฒด๋ฅผ ๊ฐ์ ธ์์ ๊ทธ ๊ฐ์ฒด์ count๋ผ๋ property์ ๊ฐ์ ๊บผ๋ด์ num์ ์ ์ฅ set({ count: num + 1 }); // num ๋ฅผ 1 ์ฆ๊ฐ์์ผ ๊ฐ์ฒด์ property์ค ํ๋์ธ count๊ฐ์ ์
๋ฐ์ดํธ ํจ} ์ด๋ ๊ฒ ํ๋ฉด ์ดํด๊ฐ ์ฌ์ธ๊น์.. ์ด๊ฑฐ๋ ๊ฐ๋ฅ...(๋ด๋ถ์ ์ผ๋ก ์ํ๋ฅผ์๊ณ ์์)increase: () => set((state) => ({ count: state.count + 1 })) ์ ๋ ๊ฐ์๋ฃ๊ณ ์์ด์