Skip to content

Add react support - #99

Closed
jourdain wants to merge 2 commits into
masterfrom
add-react-support
Closed

jourdain wants to merge 2 commits into
masterfrom
add-react-support

Conversation

@jourdain

@jourdain jourdain commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

olearypatrick and others added 2 commits September 9, 2026 11:23
Add react-components/ (TypeScript) providing the VtkLocal component for
the native React client that ships with trame-client, mirroring
vue-components/: same wasm runtime/remote-session management (shared
window registries + trame.refs.vtkWASM), scene sync through the
vtklocal.get.* RPCs, camera/listener observers, progress overlay and the
imperative surface (update, resetCamera, invoke, evalStateExtract,
startWebXR, ...) through refs for server js_call. src/utils.js is shared
verbatim with vue-components.

The module setup selects the client bundle by server.client_type
(trame_vtklocal.umd.js + vue_use, or trame_vtklocal_react.umd.cjs +
react_use); CI builds both bundles.
@jourdain

jourdain commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

#100

@jourdain jourdain closed this Sep 9, 2026
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.

2 participants