Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- hbase 저장공간 설정
- 핀포인트
- reids
- 개발 어렵당.ㅠ
- RedirectService
- 노드간 통신
- fake jwt
- UnsupportedOperationException
- save/update
- 티스토리챌린지
- pinpoint 2.5.3
- 플루터
- intellij
- Armeria
- jar 배포
- 월급루팡 일지
- nGinder
- ㅉ때
- 애자일 싫타
- Ingress Controller Fake
- 오블완
- LPOS
- jsonMarshaller
- pinpoint
- formik
- R2DBC Paging
- 논블록킹 성능
- OIDC
- Loki 로그
- 7879
Archives
- Today
- Total
대머리개발자
Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p> 본문
개발이야기/예외
Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>
대머리개발자 2023. 3. 4. 19:22728x90
워닝이라고 하더라도 콘솔에는 빨간라인들은 아무래도 신경이 쓰인다. 구글링 하러 가즈아!!
<P> 태그 자식으로 <div> 들어가면 브라우저가 워닝을 뱉는다고 한다.
규칙을 지키라 이거겠죵..
머트리얼UI <Typography>는 기본적으로 P 태그로 랜더링 된다.
따라서 아래와 같이 component="div" 삽입하여 div로 랜더링 되도록 변경하면 워닝은 감쪽 같이 사라진다. 뿅!
<Typography component="div" variant="body2" color="text.secondary" align="center">
728x90