diff --git a/.changeset/cyan-spoons-arrive.md b/.changeset/cyan-spoons-arrive.md new file mode 100644 index 00000000..e4ce6f35 --- /dev/null +++ b/.changeset/cyan-spoons-arrive.md @@ -0,0 +1,5 @@ +--- +"@h6s/table": patch +--- + +replace JSX.Element type to ReactNode diff --git a/packages/table/src/types/table.ts b/packages/table/src/types/table.ts index 5493e9eb..cc9e2851 100644 --- a/packages/table/src/types/table.ts +++ b/packages/table/src/types/table.ts @@ -46,7 +46,7 @@ export type CellRendererProps = PropsWithChildren<{ export type CellRecursiveRenderer = ( props: PropsWithChildren<{ cellProps: CellType }> -) => JSX.Element | null; +) => ReactNode | null; export type CellComponent = (props: { cellProps: CellType;