react: port deck.gl's own apps to @deck.gl/react

Open
#11,396 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript
Domain
frontend, web-dev

Research direction

Start with the migration guide at docs/developer-guide/react/migrate-from-deckgl-react.md and the reference app in #11320. Choose one of the listed app groups and follow its linked task, such as #11398 or #11397; each group has different migration steps. Done means the selected apps use the new @deck.gl/react module and follow the applicable migration pattern.

Written by the indexing model from the issue text.

Description

Background

@deck.gl/react is the new renderer, and the TSC signed off on it (#11041). 80 files in this repo still import @deck.gl/react/legacy. This issue tracks moving the examples and the website to the new module, one PR per kind of change. Prerequisites land first, so the port PRs each sit on master instead of in a stack.

The migration guide (docs/developer-guide/react/migrate-from-deckgl-react.md) explains each change. The get-started MapLibre app (#11320) is the reference for apps with a react-map-gl <Map> child.

Plan

  • Prerequisites. The website moves to React 19, which @deck.gl/react needs. The website's @deck.gl/react alias, which points a bare import at /legacy for the 9.x examples/ gallery, is limited to examples/. The examples-v10/website package.json files move to @deck.gl/react and React 19. Nothing visible changes. #11389, #11390, #11391, #11392
  • Renderer fix. JSX views and layers reach Deck on its first frame. #11395
  • Props-only apps: the import changes, and layers, views and effects move to JSX. globe, orthographic, plot, point-cloud, treemap, wms, image-tile, mesh, google-3d-tiles, experimental/bezier, proposals/shared-tile-2d-layer, basemap-browser (deck-only renderer). #11398
  • Apps with a react-map-gl <Map> child. <Map> becomes the parent and DeckGL comes from a map subpath: 3d-heatmap, 3d-tiles, arc, brushing, collision-filter, contour, geojson, heatmap, i3s, line, mask-extension, scatterplot, scenegraph, screen-grid, trips, zoom-bands. #11397
  • Apps whose camera moves to the map: carto-sql (controlled view state and transitions), data-filter, text, experimental/h3-grid. #11414
  • radio, a rewrite. #11417
  • layer-browser, a rewrite (useControl, ref.current.deck).
  • playground, a rewrite.
  • Website doc demos: demo-base.js, widgets.js, extensions.js.

On hold

  • Apps with HTML children: 360-video, map-tile, terrain, terrain-extension, and highway, icon and path-style-extension, which render HTML tooltips. They wait for a better HTML story than a wrapper beside DeckGL.
  • test/apps: after the examples. minimap, a multi-view app with a map child, may stay on /legacy.

Stays on /legacy

The specs under test/modules/react that test /legacy itself, scripts/check-docs-snippets.mjs, the tsconfig and vitest config, the benchmark, and modules/main until #11324 is decided.


Generated by Claude Code

Dominant language
TypeScript
Stars
14.8k
Forks
2.3k
Avg merge
1d 9h
Merged PRs (30d)
230

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from visgl/deck.gl

All issues in visgl/deck.gl

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.