[JSX element type 'Component' does not have any construct or call signatures.ts(2604)] 에러 해결
리액트 컴포넌트와 숫자를 인자로 받아 숫자만큼 리액트 컴포넌트를 복제해서 반환하는 duplicate 함수를 만들었다. function duplicate(Component: JSX.Element, number: number) { return ( {Array.from({ length: number }).map((value, index) => ( ))} ); }그러자 JSX element type 'Component' does not have any construct or call signatures.ts(2604)라고 에러가 떴다. duplicate 함수의 인자로 리액트 컴포넌트를 만드는 consturctor를 넘긴 것이 아니라 만들어진 instance를 넘겨서 문제가 되었던 것이다. 아래와 ..
ReactJS | NextJS
2020. 12. 22. 01:54
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- sql
- reactjs
- 알고리즘
- 스택
- JS
- 컴퓨터과학
- 코테후기
- 우선순위큐
- 동적계획법
- 큐
- MySQL
- dash-plotly
- 리액트
- 회고
- plotly
- 머신러닝
- 카카오추천팀
- 다이나믹프로그래밍
- 후위표기식
- 개발
- 코드포매터
- dfs
- 자료구조
- 컴퓨터공학
- 자바스크립트
- 프로그래머스
- React
- 백준
- Dash
- c++
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
글 보관함