반응형
Typo in static class property declaration

porpTypes생성 중 발생된 오류
소문자 대분자를 주의해서 사용하자
PropTypes(x)
propTypes(0)
Food.propTypes = {
name: PropTypes.string.isRequired,
picture: PropTypes.string.isRequired,
rating: PropTypes.string.isRequired
};
반응형
'Front > react' 카테고리의 다른 글
| [오류해결] To address all issues (including breaking changes), run: npm audit fix --force (0) | 2024.01.19 |
|---|---|
| prop-types 설치하기 (0) | 2022.04.13 |
| img elements must have an alt prop, either with meaningful text, or an empty string for decorative images 경고 (0) | 2022.04.11 |
| react 18 렌더링 변화 (0) | 2022.04.07 |
| React jsx구조 (0) | 2022.03.27 |