Skip to content

docs: fix broken non-React README example#2004

Merged
seveibar merged 1 commit intotscircuit:mainfrom
CuboYe:docs/fix-nonreact-readme-example
Mar 5, 2026
Merged

docs: fix broken non-React README example#2004
seveibar merged 1 commit intotscircuit:mainfrom
CuboYe:docs/fix-nonreact-readme-example

Conversation

@CuboYe
Copy link
Contributor

@CuboYe CuboYe commented Mar 4, 2026

What I noticed

The non-React usage snippet in the README had a few copy/paste errors (project.add, LED1, getJson) that can confuse new contributors following the example.

What I changed

  • replaced project.add(board) with circuit.add(board)
  • declared and added L1 before wiring the trace
  • updated LED1 -> L1 in trace connection
  • updated getJson() -> getCircuitJson()

Why this is worth fixing

This is one of the first snippets people try. Keeping it runnable as-written reduces onboarding friction and avoids avoidable support questions.

@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview, Comment Mar 4, 2026 0:40am

Request Review

@CuboYe
Copy link
Contributor Author

CuboYe commented Mar 5, 2026

Quick follow-up: this PR is ready for maintainer review/merge on my side. Happy to make any requested changes immediately.

@seveibar seveibar merged commit bdd7c20 into tscircuit:main Mar 5, 2026
12 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.

3 participants