Skip to content

docs(react): document the React renderer as @deck.gl/react - #11247

Closed
chrisgervang wants to merge 8 commits into
chr/react-fiber-reviewfrom
chr/react-fiber-docs
Closed

chrisgervang wants to merge 8 commits into
chr/react-fiber-reviewfrom
chr/react-fiber-docs

Conversation

@chrisgervang

Copy link
Copy Markdown
Collaborator

For #11036. Closes #11037

Background

Docs only, stacked on #11246. The renderer docs are copied from visgl/deck.gl-community at 090b2439, the commit #11245 copies the code from. Each step is its own commit, so the copy can be compared with the community pages and the adaptations read separately.

Change List

  • Move the current API's pages to api-reference/react/legacy
  • Copy the community renderer docs into api-reference/react and developer-guide/react
  • Name the current package @deck.gl/react/legacy, and the renderer @deck.gl/react
  • Rewrite the migration page's intro; requirements follow react: replace the module with the fiber renderer as @deck.gl/react #11036 (React 19.2)
  • Re-point links between the copied pages and to deck.gl docs
  • Sidebar: renderer pages, /legacy pages and a "Using with React" guide section
  • Point useWidget, React context and 9.x what's-new links at /legacy
  • Upgrade guide: v10 @deck.gl/react entry
  • What's new: link the renderer's map guides

TODO

  • get-started/using-with-react.md still teaches the previous API; it links /legacy for now.
  • Example links point at deck.gl-community until the examples are ported.

Verified locally: yarn lint, and a script that checks every relative link in the React pages resolves.


Generated by Claude Code

So the renderer's overview and DeckGL pages can take their paths. The pages'
relative links gain a `../` for the deeper folder; nothing else changes. Links
to these pages and the sidebar are updated in a later commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
Copies `docs/modules/react-fiber` from visgl/deck.gl-community at 090b2439 byte
for byte, the same commit #11245 copies the code from:

- README.md -> api-reference/react/overview.md
- api-reference/*.md -> api-reference/react/
- developer-guide/** -> developer-guide/react/

The next commits adapt them to deck.gl: package names, links and the sidebar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
- The community docs call the current package `@deck.gl/react` and the renderer
  `@deck.gl-community/react-fiber`. In prose, the current package becomes
  `@deck.gl/react/legacy` first, then the renderer becomes `@deck.gl/react`.
  Code samples of a 9.x app's imports stay as they are.
- The upgrade guide's intro says what moves where, and its "From" section
  becomes "From `@deck.gl/react` 9".
- The requirements follow #11036: React 19.2, and `@deck.gl/widgets` is
  required for `/legacy`. The `10.0.0-alpha.1` version notes are removed.
- Links between the copied pages follow them to their new paths, and
  `https://deck.gl/docs/...` links become relative.
- Links to the community examples and the Leaflet and Bing Maps modules point
  at the deck.gl-community site, where they still live.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
- The `@deck.gl/react` API reference lists the renderer's pages, with the
  previous API's pages under `@deck.gl/react/legacy`.
- A "Using with React" developer guide section holds the renderer guides.
- Links to `useWidget`, the React context and the 9.x what's-new entries now
  point at the `/legacy` pages; the v10 what's-new entry links the renderer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
For #11037.

- The upgrade guide says what changes in `@deck.gl/react`, how to keep the
  previous API at `/legacy`, and links the migration page for the rest.
- The migration page is titled "Migrating from the previous API", so the
  sidebar does not show two upgrade guides; the links to it use that name.
- The v10 what's-new entry links the renderer's map guides, and no longer says
  the root is about to change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
@coveralls

coveralls commented Nov 19, 2026 •

Copy link
Copy Markdown

Coverage Status

Coverage is 82.503% — chr/react-fiber-docs into chr/react-fiber-review. No base build found for chr/react-fiber-review.

Copy link
Copy Markdown
Collaborator Author

Split for review into #11254 (moves the previous API's pages to /legacy and re-points every link) and #11255 (the renderer docs, stacked on #11254). The final docs are identical to this PR's head.


Generated by Claude Code

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