Repository navigation
docs(react): document the React renderer as @deck.gl/react - #11255
Conversation
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
[Low impact] The PR appears safe to merge; no new actionable issues were found. SummaryDocuments the new
Reviews (6) · Last reviewed commit: "docs(react): drop the DeckCanvas page" · Reviewed by Greptile |
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
… DeckGL page Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
…react-docs-renderer
…er's DeckGL page Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
…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
…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
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
From visgl/deck.gl-community#1077. Describes #11271's behavior, so #11271 should merge first. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
ibgreen
left a comment
There was a problem hiding this comment.
One merge-order dependency for the new React props documentation.
|
The red Generated by Claude Code |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
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
api-reference/reactanddeveloper-guide/react@deck.gl/react/legacy, and the renderer@deck.gl/reactDeckGLlinks in using-layers and views point at the renderer page@deck.gl/reactentryidget one from their place in the React tree, from feat(react-fiber): generate ids for deck elements without an id deck.gl-community#1077 (code in feat(react): give elements without an id one from their place in the React tree #11271, merged)DeckGL: removed props reset to deck.gl's defaults, and props that only apply at creation, from fix(react-fiber): reset removed props, and warn about props that only apply at creation deck.gl-community#1088 (code in fix(react): reset removed props, and warn about props that only apply at creation #11267, merged)@deck.gl/reactthroughoutTODO
get-started/using-with-react.mdstill teaches the previous API; it links/legacyfor now.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/reactReact 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/legacyto 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