This module exports PerspectiveViewer, a declarative React wrapper
for the <perspective-viewer> Custom Element. The component manages the
element's imperative lifecycle — load() and restore() in response to
prop changes, delete() on unmount — and exposes the element's Custom
Events as React-style callback props.
Perspective's WebAssembly engine and UI must be initialized (and at least
one plugin package imported) before the first <PerspectiveViewer>
renders:
React bindings for Perspective.
This module exports PerspectiveViewer, a declarative React wrapper for the
<perspective-viewer>Custom Element. The component manages the element's imperative lifecycle —load()andrestore()in response to prop changes,delete()on unmount — and exposes the element's Custom Events as React-style callback props.Perspective's WebAssembly engine and UI must be initialized (and at least one plugin package imported) before the first
<PerspectiveViewer>renders:Then pass a
Table(orClient, or aPromiseof either) and an optional config:See Also
react-exampleproject from the Perspective GitHub repo, a complete bundler-configured application including a multi-panel workspace config.<perspective-viewer>API documentation