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

getting-started

하는 일

이 스킬은 TanStack Table로 Octane 앱에 데이터 표를 만드는 방법을 보여 줍니다. Octane과 TSRX 템플릿 문법을 쓰는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓레코드 목록을 표로 보여 주는 Octane 페이지를 만들 때.
  • ✓렌더 도우미를 통해 표가 헤더와 셀을 보여 주어야 할 때.
  • ✓TSRX 파일에서 열 도우미로 표의 열을 정의하고 싶은 경우.

스킬 링크

https://github.com/TanStack/table/blob/main/packages/octane-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/octane-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에게 요청하는 예시

“제품 목록을 표로 보여 주는 Octane 페이지를 만들고 있어요. 어떻게 설정하나요?”

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

작동 방식

열과 데이터가 있는 예시 컴포넌트를 제공한 뒤, 마크업에서 헤더, 행, 셀을 반복해 페이지에 보여 주는 방법을 보여 줍니다.

기술 내용 (원본 SKILL.md)

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

Load intent load @tanstack/table-core#core first for the headless model, stable inputs, and column inference.

Setup

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

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

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

  <table>
    <thead>
      @for (const group of table.getHeaderGroups(); key group.id) {
        <tr>
          @for (const header of group.headers; key header.id) {
            <th><table.FlexRender header={header} /></th>
          }
        </tr>
      }
    </thead>
    <tbody>
      @for (const row of table.getRowModel().rows; key row.id) {
        <tr>
          @for (const cell of row.getAllCells(); key cell.id) {
            <td><table.FlexRender cell={cell} /></td>
          }
        </tr>
      }
    </tbody>
  </table>
}

const rootElement = document.getElementById('root')
if (!rootElement) throw new Error('Root element not found')
createRoot(rootElement).render(PeopleTable)

Construction and rendering

This adapter distributes authored TypeScript and TSRX. Configure the consumer with octane() in vite.config.ts and the TSRX JSX import source octane. Author component bodies with @{ ... } and keyed @for loops for rows, headers, and cells.

Import from @tanstack/octane-table. Render table.FlexRender as a component so it gets its own Octane scope. It preserves numbers including 0, render descriptors, and component functions.

Keep features and column definitions at module scope. For inputs that depend on component state, use useMemo; pass the current stable data array to useTable. Convert non-renderable values with String(value) when displaying them as text.

Read for the task

  • When adding or configuring optional features, load intent load @tanstack/table-core#table-features and read only references for the requested behavior.
  • For state ownership or reactive reads, read table-state.
  • When tables share features, defaults, or reusable UI, read create-table-hook.

API discovery

Inspect node_modules/@tanstack/octane-table/src/index.d.ts, the matching *.tsrx.d.ts sidecar, and src/types.ts. This package publishes authored source; core APIs are in installed @tanstack/table-core/dist/.

자주 묻는 질문

TSRX는 무엇인가요?

예시는 이 어댑터가 쓰는 컴포넌트 문법인 TSRX로 작성되어, 일반 JSX와 모양이 다릅니다.

데이터는 어디서 오나요?

예시는 useState로 Octane 상태에 데이터를 보관하고 그것을 표에 넘깁니다.

핵심 표 가이드를 대체하나요?

아니요, 헤드리스 표 모델의 기본 개념을 이미 읽었다고 가정합니다.

상세 정보

작성자의 원본 설명

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

repo: TanStack/table

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬