본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)29k · #9824

getting-started

하는 일

이 스킬은 TanStack Table로 React 앱에 데이터 표를 만들고 보여 주는 방법을 설명합니다. 스타일을 입히고 제어할 수 있는 표를 원하는 React 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓레코드를 표로 보여 주는 React 컴포넌트를 만들 때.
  • ✓표에 query나 가상 스크롤 기능이 함께 작동해야 할 때.
  • ✓React 앱에 열 정의에서 그려진 헤더, 행, 셀이 필요한 경우.

스킬 링크

https://github.com/TanStack/table/blob/main/packages/react-table/skills/getting-started/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/TanStack/table/blob/main/packages/react-table/skills/getting-started/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이름과 나이 열이 있는 고객 목록 React 표가 필요해요. 어떻게 만드나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도우미로 열을 정의하고, 훅으로 표를 만든 뒤, 헤더와 행을 매핑해 표를 그리는 방법을 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

React Table setup and integration

Before starting, run intent load @tanstack/table-core#core for the shared headless model and stable-input rules.

Setup

import { useState } from 'react'
import {
  createColumnHelper,
  tableFeatures,
  useTable,
} from '@tanstack/react-table'

type Person = { name: string; age: number }
const features = tableFeatures({})
const helper = createColumnHelper<typeof features, Person>()
const columns = helper.columns([
  helper.accessor('name', { header: 'Name' }),
  helper.accessor('age', { header: 'Age' }),
])

export function PeopleTable() {
  const [data] = useState<Person[]>([{ name: 'Ada', age: 36 }])
  const table = useTable({ features, columns, data })

  return (
    <table>
      <thead>
        {table.getHeaderGroups().map((group) => (
          <tr key={group.id}>
            {group.headers.map((header) => (
              <th key={header.id}>
                {header.isPlaceholder ? null : (
                  <table.FlexRender header={header} />
                )}
              </th>
            ))}
          </tr>
        ))}
      </thead>
      <tbody>
        {table.getRowModel().rows.map((row) => (
          <tr key={row.id}>
            {row.getAllCells().map((cell) => (
              <td key={cell.id}>
                <table.FlexRender cell={cell} />
              </td>
            ))}
          </tr>
        ))}
      </tbody>
    </table>
  )
}

Table produces models and state; React owns the semantic markup, styles, event affordances, and accessibility.

Essential constraints

Use useTable for v9. Keep features, columns, and fallback data at module scope or in stable state/memos. A new response.data ?? [] fallback invalidates row models on every render. The default selector subscribes the owner to all registered state.

Table owns models and state. The application owns markup, CSS, interactions, and accessibility. Core-only tables use row.getAllCells(); visibility-aware methods need columnVisibilityFeature. Optional state and APIs require their features. Put row-model slots after their prerequisite features in tableFeatures().

Load by task

  • For repeated features, defaults, typed contexts, or component registries, read reusable app hooks.
  • For Query-backed data, server pages, sorting, filtering, or request keys, read TanStack Query integration.
  • For virtual rows, columns, dynamic measurement, or infinite scrolling, read TanStack Virtual integration.
  • For controlled state, tracked reads, or render subscriptions, read table state.
  • For feature registration, missing feature APIs, or processing ownership, run intent load @tanstack/table-core#table-features and read only references needed by the task.
  • For v8 code, read the migration checklist.

API discovery

Inspect node_modules/@tanstack/react-table/dist/index.d.ts, then the exported adapter declarations for the installed version. Inspect optional core APIs under node_modules/@tanstack/table-core/dist/features/.

자주 묻는 질문

핵심 가이드를 먼저 읽어야 하나요?

네, 헤드리스 모델과 안정적인 입력 규칙을 위해 공유 핵심 가이드를 먼저 읽으라고 이 스킬은 말합니다.

열은 왜 안정적으로 유지해야 하나요?

표가 렌더링마다 모델을 다시 만들지 않도록 안정적인 입력을 권하기 때문입니다.

React 전용인가요?

네, TanStack Table v9의 React 어댑터를 다루며, 다른 프레임워크는 별도의 가이드가 있습니다.

상세 정보

작성자의 원본 설명

Create and render Table v9 with the react adapter. Route reusable createTableHook components, Query and Virtual integration, and framework setup; use table-state for reactive ownership.

repo: TanStack/table

인기도

GitHub 스타
29k
순위
#9824
라이선스
MIT
업데이트
2026. 10. 21.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬