Saltar al contenido principal

Function: useGetBody()

useGetBody(): HTMLBodyElement | null

Defined in: src/infrastructure/dom/dom.service.ts:57

Returns the <body> element, or null outside a browser.

Returns

HTMLBodyElement | null

The document.body element cast as HTMLBodyElement.

Example

const body = useGetBody();
body?.classList.add("loaded");