Skip to content
View bhashkarsharma's full-sized avatar

Block or report bhashkarsharma

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. 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.
    1
    import { useEffect, useRef } from 'react';
    2
    
                  
    3
    export type Props = Record<string, any>;
    4
    
                  
    5
    export default function useWhyDidComponentUpdate(componentName: string, props: Props) {
  2. Debug React component rendering with... Debug React component rendering with this JS hook (includes render count logging)
    1
    import { useEffect, useRef } from 'react';
    2
    
                  
    3
    const PREFIX = '[useComponentDebug]';
    4
    
                  
    5
    export default function useComponentDebug(componentName, props) {