Executed a given callback after a certain delay.
import { useTimout } from 'primereact/hooks';
Wait for 3 seconds to view the Toast message.
const [clearTimeout] = useTimeout(() => {
toast.current.show({ severity: 'info', summary: 'Loaded' });
}, 3000);