-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Description
Describe the bug (required)
Type 'string' is not assignable to type '"col1"
Provide an example via Codesandbox! (required)
I tried to produce a typescript react-table example without luck. i am really sorry
Steps To Reproduce (required)
` const data = React.useMemo(
() => [
{
col1: 'Value 1',
},
],
[]
);
const columns = React.useMemo(
() => [{
Header: 'what',
accessor: 'col1',
}
],
[]
);
const {
getTableProps,
getTableBodyProps,
headerGroups,
rows,
prepareRow,
} = useTable( {
columns,
data,
} )`
Expected behavior (Recommended)
No typescript error
Desktop (please complete the following information):
- OS: Linux Mint
- Browser Chrome
- Version react-table 7.6.2
"@types/react-table": "^7.0.25",