Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
import { useEffect } from 'react';
/**
* Custom hook to set document title dynamically.
* Automatically appends " | OpenWA" suffix.
*/
export function useDocumentTitle(title: string) {
useEffect(() => {
const previousTitle = document.title;
document.title = `${title} | OpenWA`;
return () => {
document.title = previousTitle;
};
}, [title]);
}