codestates / codestates/ThereWeather
[๐พ Error Handling] Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted โ the behavior is unsupported and could change in a future version.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
## ์ด๋ค ์๋ฌ์ธ๊ฐ์?
- map ์ธ ๋ key ๊ด๋ จ ์ค๋ฅ
## ์๋ฌ ๋ฉ์์ง
```jsx
index.js:1 Warning: Encountered two children with the same key, `24`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted โ the behavior is unsupported and could change in a future version.
```
## ์๋ฌ ํธ๋ค๋ง ๋ฐฉ๋ฒ
```jsx
map์ธ ๋ ์ธ์์ idx ์ถ๊ฐ ํ key๋ก ์ฌ์ฉ
```
## ์๋ฌ ํธ๋ค๋ง์ ์ํด ์ฐธ๊ณ ํ ๋ ํผ๋ฐ์ค ๋งํฌ
[์์1](https://stackoverflow.com/questions/59978815/encountered-two-children-with-the-same-key-1-keys-should-be-unique-so-that-c?rq=1)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.