Skip to content

Examples

b3hr4d edited this page Mar 11, 2026 · 1 revision

Examples

These are the most useful starting points in the repository.

Example What it shows
examples/all-in-one-demo broad React feature coverage in one app
examples/query-demo suspense queries, query factories, and mutations against live ledgers
examples/tanstack-router route loaders and generated hooks
examples/vite-plugin-demo Vite plugin code generation
examples/codegen-in-action Vite plugin vs CLI output
examples/nextjs manual dfx flow in a Next.js app
examples/typescript-demo core runtime without React
examples/candid-parser dynamic candid and parser usage
examples/suspense-infinite-query-demo suspense infinite query against a local canister

Picking the Right Example

  • New React app: start with all-in-one-demo or vite-plugin-demo
  • Shared factory patterns: use query-demo
  • Route loader usage: use tanstack-router
  • Non-React runtime: use typescript-demo
  • Dynamic canister tooling: use candid-parser
  • Existing dfx setup: use nextjs

Clone this wiki locally