현명한 소의 기록장

  • 분류 전체보기 (75) N
    • JAVA (2)
    • Spring (2)
    • Infra (1) N
    • TIL(Today I Learned) (49)
      • 취준 기록 (0)
      • 2022년 (14)
      • 2021년 (35)
    • Web (5)
    • React (1)
    • JS (1)
    • Python (4)
    • Algorithm (5)
    • 서비스 기획 (1)
    • AI (1)
    • 잡동사니 (1)
  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
  • COMputer AND AN씨의 개발개발
  • ITS's Dev Story
/ /

01.14 - return type 'Element[]' is not a valid jsx element

심리밀당남 2022. 1. 14. 12:31
2022. 1. 14. 12:31

 

1. return type 'Element[]' is not a valid jsx element

  • valid한 JSX Element는 Signle Root를 return 해야함!

https://stackoverflow.com/questions/62702485/component-cannot-be-used-as-a-jsx-component-its-return-type-element-is-not

 

Component cannot be used as a JSX component. Its return type 'Element[]' is not a valid JSX element

I'm currently getting the following error on the Todos component inside TodoApp.tsx: 'Todos' cannot be used as a JSX component. Its return type 'Element[]' is not a valid JSX element. Type 'Element...

stackoverflow.com

 

'TIL(Today I Learned) > 2022년' 카테고리의 다른 글

01.20 - PM을 내려놓으며 배운 것들  (0) 2022.01.20
01.19 - Custom Hook 사용 조건 / React: Too many re-renders Error  (0) 2022.01.19
01.11 - Nullish Operator  (0) 2022.01.11
01.06 TS에서 enum 대신 const를 활용한 union type을 쓰자  (0) 2022.01.06
01.06 open graph meta tag는 www로 시작하는 도메인이 아니면 안먹힘  (0) 2022.01.06

+ Recent posts

Powered by Tistory, Designed by wallel
Rss Feed and Twitter, Facebook, Youtube, Google+

티스토리툴바