Blog>
Snippets

Installing TanStack Config in a New Project

Show how to install TanStack Config using npm or yarn and initialize the basic configuration file.
npm install @tanstack/react-table-config
This command installs the TanStack Config for react-table using npm. Replace with 'yarn add @tanstack/react-table-config' if you use Yarn.
import { createTable } from '@tanstack/react-table';

// Initialize your table configuration
const table = createTable();
Imports the 'createTable' function from the installed TanStack package and initializes the table configuration.