-
[Zustand] Zustand
Zustand๋ค์ด๊ฐ๋ฉฐ์ ์ญ ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค ํ๋์ธ Zustand์ ๋ํด ๊ฐ๋จํ๊ฒ ์ ๋ฆฌํด๋ณธ๋ค. Zustand๊ฐ๋
๋
์ผ์ด๋ก ์ํ(Status)๋ผ๋ ๋ป๋ฆฌ์กํธ ์ฑ์์ ์ ์ญ ์ํ ๊ด๋ฆฌ๋ฅผ ํด์ฃผ๋ ์์ฃผ ๊ฐ๋ณ๊ณ ๋จ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌRedux์ ๋ณต์กํ ๊ตฌ์กฐ(Action, Reducer, Dispatch)๋ฅผ ์ฌ์ฉํ์ง ์๊ณ , Hooks ๊ธฐ๋ฐ์ ๊ฐ๋จํ API ์ ๊ณต"minimal, fast, scalable"์ ๋ชฉํ๋ก ๋ง๋ค์ด์ก๋ค. ๋น๊ตRedux์ ๋น๊ตRedux๋ boilerplateํ ์ฝ๋๊ฐ ๋ง๋ค.@action@, @reducer@, @slice@๋ฅผ ์์ฑํด์ผ ํ๋ค.// Redux Toolkitconst slice = createSlice({ name: "counter", initialState: { count: 0 }, re..
1
2025.08.18