반응형
-- error
<Form.Select>
{
list.map(row =>
(
<option value={row}>{row}</option>
)
)
}
</Form.Select>
-- 배열로 map 함수를 사용해 JSX 리스트를 구현할 때 key prop을 자식 컴포넌트마다 넣어줘야 한다.
<option key={row} value={row}>{row}</option>
-- 해결
key={row}
반응형
'오류' 카테고리의 다른 글
[Spring] Path with "WEB-INF" or "META-INF" (0) | 2022.08.19 |
---|---|
Swagger-ui.html 404 not found error (0) | 2022.08.19 |
'org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter' is deprecated (0) | 2022.07.21 |
could not open `C:\Program Files\Java\jre1.8.0_311\lib\amd64\jvm.cfg' (0) | 2022.07.07 |
이 사이트에 연결할 수 없습니다. localhost 연결을 거부했습니다 (0) | 2022.06.28 |
댓글