1, 오류내용
Type '{ children: any; name: any; }' is not assignable to type 'DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>'.
Property 'name' does not exist on type 'DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>'.ts(2322)
2. 문제해결
https://ko.legacy.reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html
커스텀 태그를 위해서는 data-xxx, aria-xxx의 방법으로 새롭게 태그를 작성하여 사용하면 된다.
'프로그래밍 > 세팅 및 오류' 카테고리의 다른 글
Request failed with status code 405 (0) | 2024.07.24 |
---|---|
[C#, React]Expected a pseudo-class or pseudo-element 오류 (2) | 2023.12.15 |
[Error] @Value Null 오류 (0) | 2023.05.21 |
[Error] Spring NoSuchBeanDefinitionException 문제 (0) | 2023.05.19 |
[error] 창이 예기치 않게 종료되었습니다(원인: 'killed', 코드: '3') in vscode (0) | 2023.03.11 |