docs: use tsx code fences for JSX examples#710
Conversation
36 code blocks containing JSX (React/Solid/Preact components) were fenced as ```typescript. Re-fence them as ```tsx so editors and the docs site highlight the JSX correctly. No ```ts blocks contained JSX; the mislabeled ones were all ```typescript.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (12)
📝 WalkthroughWalkthroughThis pull request updates Markdown code fence language tags from ChangesCode fence language tag standardization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 5be9ce3
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
@tanstack/ai
@tanstack/ai-anthropic
@tanstack/ai-client
@tanstack/ai-code-mode
@tanstack/ai-code-mode-skills
@tanstack/ai-devtools-core
@tanstack/ai-elevenlabs
@tanstack/ai-event-client
@tanstack/ai-fal
@tanstack/ai-gemini
@tanstack/ai-grok
@tanstack/ai-groq
@tanstack/ai-isolate-cloudflare
@tanstack/ai-isolate-node
@tanstack/ai-isolate-quickjs
@tanstack/ai-mcp
@tanstack/ai-ollama
@tanstack/ai-openai
@tanstack/ai-openrouter
@tanstack/ai-preact
@tanstack/ai-react
@tanstack/ai-react-ui
@tanstack/ai-solid
@tanstack/ai-solid-ui
@tanstack/ai-svelte
@tanstack/ai-utils
@tanstack/ai-vue
@tanstack/ai-vue-ui
@tanstack/openai-base
@tanstack/preact-ai-devtools
@tanstack/react-ai-devtools
@tanstack/solid-ai-devtools
commit: |
What
Re-fences JSX code examples that were mislabeled as TypeScript so editors and the docs site highlight them correctly.
36 code blocks across 12 doc pages contain JSX (React / Solid / Preact components,
return <div>…,<Component … />, etc.) but were fenced as```typescript. They're now fenced as```tsx.Note on the fence language
The request was about
```ts→```tsx, but a scan turned up zero```tsblocks containing JSX — every mislabeled JSX block was tagged```typescript. So this PR converts thosetypescriptJSX blocks totsx, which is the real fix the request was after.Files touched
docs/adapters/elevenlabs.mddocs/api/ai-preact.md,docs/api/ai-react.md,docs/api/ai-solid.mddocs/code-mode/client-integration.mddocs/getting-started/quick-start.mddocs/media/realtime-chat.mddocs/migration/migration-from-vercel-ai.mddocs/tools/client-tools.md,docs/tools/tool-approval.md,docs/tools/tool-architecture.md,docs/tools/tools.mdHow
Detected blocks by JSX signals (closing tags
</…>, self-closing/>, or JSX element lines) — TS generics produce neither</nor/>, so there are no false positives. Only the opening fence line was changed in each case.Verification
typescript→tsxfence swaps and nothing else (36 insertions / 36 deletions).pnpm test:docs→ ✅ no broken links.Docs-only change — no changeset.
Summary by CodeRabbit
typescripttotsxacross multiple documentation files for improved syntax highlighting of React and JSX examples.