devtools/examples/react/basic
Alem Tuzlak 90a0ec6644
feat(devtools-webmcp): add a development-only WebMCP tool registry (#531)
* feat(devtools-webmcp): add a development-only WebMCP tool registry

A library calls registerDevtoolsTools to expose internals to a browser agent. The root import is a no-op outside development.

* chore: format webmcp files

* fix: sort example dependencies for sherif

* fix(devtools-webmcp): wrap execute with a signal and drop JSDoc params
History 2026-09-23 13:27:22 +02:00
..
public init 2025-07-25 16:40:55 -05:00
scripts feat: redesign TanStack Devtools workbench (#492) 2026-08-10 14:12:44 +02:00
src feat(devtools-webmcp): add a development-only WebMCP tool registry (#531) 2026-09-23 13:27:22 +02:00
.eslintrc.cjs init 2025-07-25 16:40:55 -05:00
.gitignore init 2025-07-25 16:40:55 -05:00
index.html Feat seo serp preview (#373) 2026-03-30 14:46:35 +02:00
package.json feat(devtools-webmcp): add a development-only WebMCP tool registry (#531) 2026-09-23 13:27:22 +02:00
README.md feat: redesign TanStack Devtools workbench (#492) 2026-08-10 14:12:44 +02:00
tsconfig.json init 2025-07-25 16:40:55 -05:00
vite.config.ts feat: fix event bus port issues (#297) 2025-12-26 13:23:56 +01:00

Basic React example

Run the example from the repository root:

pnpm --filter @tanstack/devtools-example-react-basic dev

The accessibility plugin is registered only in development builds. The page's A11yAuditFixture deliberately includes three violations so the plugin has deterministic findings to display:

  • image-alt: an image without alternative text
  • button-name: an icon-only button without an accessible name
  • label: an input without an associated label

The fixture is intentionally invalid test content, not an accessibility pattern to copy. Browser extensions, environment differences, or future audit rules may report additional findings.