File: usefavicon.md | Updated: 11/15/2025
Introducing PrimeReact v11 Alpha 🥁Learn More
SearchK
10.9.7
HOOK
API
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