@paypal/react-paypal-js
Version:
React components for the PayPal JS SDK
8 lines (7 loc) • 443 B
TypeScript
/**
* `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;