Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 2.4 KB

README.md

File metadata and controls

48 lines (35 loc) · 2.4 KB
NN140.UK logo NN140.UK logo

Badge Badge

@nrbx/react-debug-tools

Hook inspection helpers for debugging React components.

Installation

npm install @nrbx/react-debug-tools

Usage

import { inspectHooks, inspectHooksOfFiber } from "@nrbx/react-debug-tools";

const tree = inspectHooks(element);

API

  • inspectHooks(element) — inspect the hooks tree of a rendered element
  • inspectHooksOfFiber(fiber) — inspect the hooks tree of a specific fiber
  • HooksNode / HooksTree — the shape of the returned hook data

Built with roblox-ts


Badge Badge

NN140.UK logo NN140.UK logo