Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chan9yu/zustand-learning

๐Ÿ“š React์—์„œ Zustand ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์—ฐ์Šตํ•˜๊ณ  ๋ฐฐ์šฐ๊ธฐ ์œ„ํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.
https://github.com/chan9yu/zustand-learning

immer react typescript vite zustand

Last synced: about 2 months ago
JSON representation

๐Ÿ“š React์—์„œ Zustand ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์—ฐ์Šตํ•˜๊ณ  ๋ฐฐ์šฐ๊ธฐ ์œ„ํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.

Awesome Lists containing this project

README

        

# ๐Ÿง‘โ€๐Ÿ’ป Zustand Learning

> ๐Ÿ“š React์—์„œ `Zustand` ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์—ฐ์Šตํ•˜๊ณ  ๋ฐฐ์šฐ๊ธฐ ์œ„ํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค.


## ๐Ÿ“ Learn List

- **Zustand**: Zustand์˜ ๊ธฐ๋ณธ ์‚ฌ์šฉ๋ฒ•๊ณผ ์ƒํƒœ ์ƒ์„ฑ ๋ฐ ๊ตฌ๋…
- **Slice ํŒจํ„ด**: ์ƒํƒœ๋ฅผ Slice๋กœ ๋‚˜๋ˆ„์–ด ๊ด€๋ฆฌํ•˜๋Š” ํŒจํ„ด
- **Immer**: ์ƒํƒœ ๋ถˆ๋ณ€์„ฑ์„ ์‰ฝ๊ฒŒ ๊ด€๋ฆฌ
- **Devtools**: Redux DevTools๋ฅผ ํ†ตํ•œ ์ƒํƒœ ๋””๋ฒ„๊น…


## ๐Ÿš€ Getting Started

๋กœ์ปฌ ํ™˜๊ฒฝ์—์„œ ์•ฑ์„ ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

### Prerequisites

ํ•ด๋‹น ์•ฑ์„ ์‹คํ–‰ํ•˜๊ธฐ ์œ„ํ•œ ํ•„์ˆ˜ ์กฐ๊ฑด์ž…๋‹ˆ๋‹ค.

1. pnpm ์„ค์น˜

```shell
# pnpm ์„ค์น˜
npm install -g pnpm
```

2. node setup

```shell
# .nvmrc ๊ธฐ์ค€ node version ์„ค์น˜
# nvm์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค๋ฉด ์ˆ˜๋™์œผ๋กœ ๋…ธ๋“œ๋ฒ„์ „์„ ๋งž์ถฐ์ฃผ์„ธ์š”.
nvm use
```

### Installation

1. ํ”„๋กœ์ ํŠธ ํด๋ก 

```shell
git clone https://github.com/chan9yu/zustand-learning
```

2. ํ”„๋กœ์ ํŠธ ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™

```shell
cd zustand-learning
```

3. ์ข…์†์„ฑ ์„ค์น˜

```shell
pnpm install
```

4. ๊ฐœ๋ฐœ ์„œ๋ฒ„ ์‹œ์ž‘

```
pnpm dev
```