Skip to content

Latest commit

 

History

History

react-debug-tools

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

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