Pinned Loading
-
React hook to track changes across r...
React hook to track changes across render cycles. One of the most useful utilities for debugging perf or rendering weirdness. 1import { useEffect, useRef } from 'react';
23export type Props = Record<string, any>;
45export default function useWhyDidComponentUpdate(componentName: string, props: Props) {
-
Debug React component rendering with...
Debug React component rendering with this JS hook (includes render count logging) 1import { useEffect, useRef } from 'react';
23const PREFIX = '[useComponentDebug]';
45export default function useComponentDebug(componentName, props) {
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.