React Bridge API (@3lens/react-bridge)
The React bridge provides React hooks and components for integrating 3Lens with React and React Three Fiber applications.
Quick Links
Main Exports
Components
ThreeLensProvider- Context provider for 3LensThreeLensCanvas- Drop-in replacement for R3F Canvas
Hooks
useThreeLensProbe- Access the probe instanceuseSelectedObject- Selection state managementuseDevtoolEntity- Register logical entitiesuseMetric- Access performance metricsuseFPS,useDrawCalls,useTriangles- Metric shortcuts
See Full Documentation
For complete API reference, see the React Bridge documentation.