import "./index.scss"; import React, {memo} from "react"; type TableProps = React.HTMLAttributes; const Table = memo((props: TableProps) => ( {props.children}
)); type TrProps = React.HTMLAttributes; const Tr = memo((props: TrProps) => ( {props.children} )); type ThProps = React.ThHTMLAttributes; const Th = memo((props: ThProps) => ( {props.children} )); type TdProps = React.TdHTMLAttributes; const Td = memo((props: TdProps) => ( {props.children} )); Table.displayName = 'Table'; Tr.displayName = 'Tr'; Th.displayName = 'Th'; Td.displayName = 'Td'; export {Table, Tr, Th, Td};