UNPKG

@paypal/react-paypal-js

Version:
8 lines (7 loc) 443 B
/** * `useProxyProps` can be used to maintain a reference to an updated props, without that change triggering * another re-render. This is useful if, for example, some props should be passed through a parent component to * a child function that contains code that needs the most up-to-date-reference, without causing the parent to * rerender. */ export declare function useProxyProps<T extends Record<PropertyKey, unknown>>(props: T): T;