codestates / codestates/ThereWeather
[๐พ Error Handling] Warning: Encountered two children with the same key, 35. 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
## ์ด๋ค ์๋ฌ์ธ๊ฐ์?
- BookmarkList ๋ฐฐ์ด์ map์ผ๋ก ๋ ๋๋งํ๋ฉด์ ๋จ๋ ์๋ฌ
## ์๋ฌ ๋ฉ์์ง
```jsx
index.js:1 Warning: Encountered two children with the same key, 35. 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
์ปดํฌ๋ํธ ์์์์๋ก 4๊ฐ์
์ญ์ ํ๋ ๊ฐ div๋ค์ ๋ด์ฉ์ ํ๋์ div์์
ํ๊ทธ๋ก ์์ฑํ์์
{}
{}
{}
{}
```
## ์๋ฌ ํธ๋ค๋ง์ ์ํด ์ฐธ๊ณ ํ ๋ ํผ๋ฐ์ค ๋งํฌ
[์์1](https://awesomezero.com/development/react-key/)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.