0.13.1 • Published 4 months ago

@use-gpu/inspect v0.13.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@use-gpu/inspect

npm install --save @use-gpu/inspect
yarn add @use-gpu/inspect

Docs: https://usegpu.live/docs/reference-components-@use-gpu-inspect

Use.GPU - Live Inspector

Wrap your app's contents in <UseInspect>:

import { useFiber } from '@use-gpu/live';
import { UseInspect } from '@use-gpu/inspect';
import { DebugProvider } from '@use-gpu/workbench';
import '@use-gpu/inspect/theme.css';

const Component = () => null;

export const App = () => {

  // HTML target to render inspector into
  const root = document.querySelector('#use-gpu')!;

  // Normal app contents
  const view = (
    // ...
    <Component />
    // ...
  );

  // Inspect the <App> fiber
  const fiber = useFiber();
  return (
    <UseInspect
      fiber={fiber}
      container={root}
      provider={DebugProvider}
    >
      {view}
    </UseInspect>
  );
}

Colofon

Made by Steven Wittens. Part of @use-gpu.

0.13.0

5 months ago

0.13.1

4 months ago

0.12.0

10 months ago

0.11.3

11 months ago

0.11.1

12 months ago

0.11.0

1 year ago

0.9.3

2 years ago

0.10.1

2 years ago

0.9.0

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.8.3

2 years ago

0.8.0

2 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago