Skip to main content

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...
)
};

Hello From Root