Remember the initial value of function
npm install --save @czaplej/use-ref-constant
yarn add @czaplej/use-ref-constant
const App = (props) => {
// always return the initial props
const initialValue = useRefConstant(() => props);
return <>...</>;
};
This library was generated with Nx.