Skip to content

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

Merged
chrisgervang merged 18 commits into
masterfrom
chr/react-docs-renderer
Nov 23, 2026
Merged

chrisgervang merged 18 commits into
masterfrom
chr/react-docs-renderer

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

For #11036. Closes #11037

Background

Docs only. #11254 moved the previous API's pages to /legacy. The renderer docs are copied from visgl/deck.gl-community at 090b2439, the commit #11245 copied the code from. The copy and each adaptation are separate commits. Supersedes #11247.

Change List

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.


Note

Low Risk
Documentation-only changes with no impact on runtime code or critical infrastructure.

Overview
Adds complete documentation for the new @deck.gl/react React 19 renderer, which replaces the legacy component wrapper with native JSX elements for layers, views, widgets, and effects.

The new API Reference documents DeckGL, JSX wrapper components, intrinsic elements such as `<deckLayer>` and `<deckView>`, and custom class factories. A new Using with React developer guide covers getting started, ID-based reconciliation, debugging workflows, and provider roots for Mapbox, MapLibre, Google Maps, and custom overlays.

Includes a migration guide for moving from @deck.gl/react/legacy to the new renderer, alongside updates to the documentation table of contents, cross-reference links, and the v10 upgrade guide.

Reviewed by Cursor Bugbot for commit 8e8291c. Bugbot is set up for automated code reviews on this repo. Configure here.


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
- The sidebar's `@deck.gl/react` section lists the three pages under
  `@deck.gl/react/legacy`.
- Links to `useWidget`, `DeckGL`, the React context and the 9.x what's-new
  entries point at the `/legacy` pages.
- The v10 what's-new entry for React components loses its link until the
  renderer's pages are added.

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 above the
  `@deck.gl/react/legacy` section.
- A "Using with React" developer guide section holds the renderer guides.
- `DeckGL` links in using-layers and views point at the renderer page.
- The v10 what's-new entry links the renderer's overview and map guides.

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.

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

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Documents the new @deck.gl/react renderer, its components, map integrations, and migration from the previous API.

  • React apps can describe deck.gl objects with a new renderer.
  • React guides explain setup and map overlay use.
  • Migration and debugging guides explain the new React API’s boundaries.
  • React documentation links now point readers to the new guides.

Reviews (6) · Last reviewed commit: "docs(react): drop the DeckCanvas page" · Reviewed by Greptile

Comment thread docs/developer-guide/views.md Resolved
Comment thread docs/api-reference/react/overview.md Resolved
From Greptile's review of #11255:

- The overview said a standalone root renders an unstyled wrapper, so a sized
  container was enough. The wrapper is absolutely positioned and fills its
  nearest positioned ancestor, so that ancestor needs a position too; the
  overview now says so and links Root DOM and sizing.
- The views guide's section on positioning HTML inside views describes the
  previous API, so its link points at the `/legacy` DeckGL page again.

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

coveralls commented Nov 20, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.662% (+0.007%) from 82.655% — chr/react-docs-renderer into master

Base automatically changed from chr/react-docs-legacy to master November 20, 2026 01:20
…erer

# Conflicts:
#	docs/developer-guide/views.md
#	docs/table-of-contents.json
#	docs/whats-new.md
…erging master

Merging the squashed #11254 applied its move of api-reference/react/{deckgl,overview}.md
to legacy/ over this branch's new pages at those paths, and its legacy links over
this branch's renderer links. This restores docs/ to 93d1add.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
Comment thread docs/developer-guide/views.md Resolved
Comment thread docs/api-reference/react/components.md Resolved
Comment thread docs/api-reference/react/components.md Resolved
Comment thread docs/api-reference/react/components.md Resolved
Comment thread docs/api-reference/react/components.md Resolved
Comment thread docs/api-reference/react/deck-canvas.md Resolved
Comment thread docs/api-reference/react/deck-canvas.md Resolved
Comment thread docs/api-reference/react/deck-canvas.md Resolved
Comment thread docs/api-reference/react/deck-canvas.md Resolved
Comment thread docs/api-reference/react/components.md Resolved
…ws pages

- components.md: one row per category with shorter descriptions, the review's
  wording, an explanation of the factories' constructor requirement, and a
  Source section.
- deck-canvas.md: marked experimental, opens with what it is for, props in the
  API reference format, limitations in their own section, and a Source section.
- views.md: positioning UI behind views points to fill-placement widgets, and
  says that only the legacy DeckGL component positions React children.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
DeckCanvas leaves @deck.gl/react in #11259 and moves to @deck.gl-community/react.

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

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

… renderer @deck.gl/react

- DeckGL: removed props reset to deck.gl's defaults; table of props that only
  apply at creation (from visgl/deck.gl-community#1088, code in #11267)
- Migration guide: "Removed props reset"; using-with-maps links the table
- DeckCanvas now lives in @deck.gl-community/react; link it there
- Replace "React Fiber" with @deck.gl/react or "the renderer"

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

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@ibgreen ibgreen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One merge-order dependency for the new React props documentation.

Comment thread docs/api-reference/react/deckgl.md Resolved

chrisgervang commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator Author

The red Coveralls - webgl-render status on 8e8291c isn't from this PR. It reports "Coverage remained the same at 44.896%", and master shows the same failing status with the same message (18:27 UTC today). This PR changes only docs. The GitHub Actions checks, including test-render, test-coverage and test-website, pass.


Generated by Claude Code

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

react-fiber: write the @deck.gl/react v9 → v10 upgrade guide

4 participants