📄 primereact/hooks/usefavicon

File: usefavicon.md | Updated: 11/15/2025

Source: https://primereact.org/hooks/usefavicon/

Introducing PrimeReact v11 Alpha 🥁Learn More

useFavicon

Controls the favicon of the page dynamically.

Import#


import { useFavicon } from 'primereact/hooks';
         

Copy

Basic#


Click the buttons to change the favicon of this page dynamically.

TwitterPrimeReact

useFavicon(favicon);
         

Copy

  • Import

  • Basic

PrimeReact 10.9.7 by PrimeTek