usePrevious
The usePrevious
hook accepts the initial value and return the previous value.
Usage
import { usePrevious } from from "@newfold/ui-component-library";
const Component = () => {
const previousCompanyOrPerson = usePrevious( companyOrPerson );
return (
// JSX...
)
};