useWhyDidYouUpdate
A hook to log the props that changed in a component
Loading...
Installation
npx shadcn@latest add @shadcnhooks/use-why-did-you-updateAPI
/**
* A hook to log the props that changed in a component
* @param componentName - The name of the component
* @param props - The props that changed in the component
*/
export function useWhyDidYouUpdate(componentName: string, props: IProps): voidCredits
Last updated on