Do not pass children as props. Instead, nest children between the opening and closing tags react/no-children-prop
옛날 코드를 가지고 오던중에 해당 에러를 만났다.
  <div
      props1={props1}
      props2={props2}
      props3={props3}
      children={
      	<div></div>
      }
  />기존 코드는 위와같이 Children props를 태그안에 보내는 형식이였는데 self closing 형태로 되어 있었다.
이 부분이 문제가 되었고 해당 코드를
  <div
      props1={props1}
      props2={props2}
      props3={props3}
      children={
      	<div></div>
      }
    >
  </div>end tag 형태로 수정하여 에러를 잡았다.
'ReactJS' 카테고리의 다른 글
| 리액트 페이지 뒤로가기 제어 (0) | 2022.06.16 | 
|---|---|
| 삼성브라우저 페이지 리다이렉팅 렌더링 이슈 (0) | 2022.06.12 | 
| Nextjs React 채팅창 스크롤 아래로 보내는 방법 scrollIntoView (2) | 2021.08.30 | 
| useRef , input 컨트롤, 커서 위치 이동 with antd (3) | 2021.08.10 | 
 
        
Comment