1. return type 'Element[]' is not a valid jsx element
- valid한 JSX Element는 Signle Root를 return 해야함!
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 |