nursing-limeN
Refine2y ago
3 replies
nursing-lime

Ant Design useTable problem

Hello, here is my code

import { List, useTable } from '@refinedev/antd';
import { Table } from 'antd';

const PostsList = () => {
    const { tableProps } = useTable();

    return (
        <List>
            <Table {...tableProps} rowKey="id">
                <Table.Column dataIndex={'id'} title="ID" />
            </Table>
        </List>
    );
};

export default PostsList;


It throws an error:

Unhandled Runtime Error
Error: (0 , _refinedev_antdWEBPACK_IMPORTED_MODULE_1.useTable) is not a function
Was this page helpful?