JSPM

  • Created
  • Published
  • Downloads 503983
  • Score
    100M100P100Q181208F
  • License MIT

get fiber information from react in a safe-ish way

Package Exports

  • bippy
  • bippy/dist/index
  • bippy/dist/index.global
  • bippy/dist/index.global.js
  • bippy/dist/index.js
  • bippy/dist/index.mjs
  • bippy/dist/rsc-shim
  • bippy/dist/rsc-shim.global
  • bippy/dist/rsc-shim.global.js
  • bippy/dist/rsc-shim.js
  • bippy/dist/rsc-shim.mjs
  • bippy/package.json

Readme

bippy

a set of utilities for working with React fiber. i use this internally for react-scan.

[!WARNING] this project accesses react internals. this is not recommended and may break production apps - unless you acknowledge this risk and know exactly you're doing.

example

import { instrument, traverseFiberRoot } from 'bippy'; // must be imported BEFORE react

instrument({
  onCommitFiberRoot: traverseFiberRoot({
    onRender(fiber) {
      console.log(fiber);
    },
  }),
});

misc

the original bippy character is owned and created by @dairyfreerice. this project is not related to the bippy brand, i just think the character is cute