Skip to content

docs: improve framework-neutrality within code examples - #730

Merged
cpojer merged 1 commit into
voidzero-dev:mainfrom
yangshun:docs/framework-examples
Nov 6, 2026
Merged

cpojer merged 1 commit into
voidzero-dev:mainfrom
yangshun:docs/framework-examples

Conversation

@yangshun

@yangshun yangshun commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Show React, Vue, Svelte, and Solid for Pages component samples whose syntax differs: loader props, useParams(), and Link in the type-safety and pages guides.
  • Note that Markdown island imports use the component extension for the app's framework (.vue, .tsx, or .svelte).
  • Ask AGENTS.md to keep new Pages examples framework-agnostic.

Test plan

  • Read the type-safety, pages overview, and Markdown guides and confirm each code group has React, Vue, Svelte, and Solid where the syntax differs.
  • Confirm Vue samples use :data, reload-document, and :on-navigate, and that Vue, Svelte, and Solid read params.id instead of destructuring useParams().

Made with Cursor

Component samples were Vue-only or JSX-only, so the guides now tab React, Vue, Svelte, and Solid where the syntax differs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@yangshun yangshun changed the title docs: show Pages examples for every framework docs: improve framework-neutrality within examples Nov 6, 2026
@yangshun yangshun changed the title docs: improve framework-neutrality within examples docs: improve framework-neutrality within code examples Nov 6, 2026

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So neutral!

@cpojer
cpojer merged commit 41f25fd into voidzero-dev:main Nov 6, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants