Home Page |
Discord |
Examples |
Blog |
Documentation
[](https://discord.gg/refine)
[](https://twitter.com/refine_dev)
refine is an open-source, headless React framework for developers building enterprise internal tools, admin panels, dashboards, B2B applications.
It eliminates repetitive tasks in CRUD operations and provides industry-standard solutions for critical project components like **authentication**, **access control**, **routing**, **networking**, **state management**, and **i18n**.
# Tanstack React Table integration for refine
[Tanstack React Table](https://tanstack.com/table/v8) is a headless table library, which means it does not ship with components, markup or styles
[refine](https://refine.dev/) is **headless by design**, offering unlimited styling and customization options. Moreover, refine ships with ready-made integrations for [Ant Design](https://ant.design/), [Material UI](https://mui.com/material-ui/getting-started/overview/), [Mantine](https://mantine.dev/), and [Chakra UI](https://chakra-ui.com/) for convenience.
refine has connectors for 15+ backend services, including REST API, [GraphQL](https://graphql.org/), and popular services like [Airtable](https://www.airtable.com/), [Strapi](https://strapi.io/), [Supabase](https://supabase.com/), [Firebase](https://firebase.google.com/), and [NestJS](https://nestjs.com/).
## Installation & Usage
```
npm install @refinedev/react-table @tanstack/react-table
```
```tsx
import { useTable } from "@refinedev/react-table";
import { ColumnDef, flexRender } from "@tanstack/react-table";
const EditPost = () => {
const columns =
React.useMemo <
ColumnDef <
IPost >
[] >
(() => [
{
id: "id",
header: "ID",
accessorKey: "id",
},
{
id: "title",
header: "Title",
accessorKey: "title",
meta: {
filterOperator: "contains",
},
},
],
[]);
const tableInstance = useTable({
columns,
refineCoreProps: {
resource: "posts",
},
});
return; /* ... */
};
```
## Documentation
- For more detailed information and usage, refer to the [refine TanStack React Table documentation](https://refine.dev/docs/packages/documentation/tanstack-table/introduction)).
- [Refer to TanStack React Table example with refine](https://refine.dev/docs/examples/table/tanstack/advanced-react-table/).
- [Refer to documentation for more info about refine](https://refine.dev/docs/).
- [Step up to refine tutorials](https://refine.dev/docs/tutorial/introduction/index/).