useFavicon

Controls the favicon of the page dynamically.


import { useFavicon } from 'primereact/hooks';
         

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


useFavicon(favicon);
         
Summer Sale 2025
SUMMER SALE2025
Use coupon code PRSM25 at checkout to get 50% OFF everything in PrimeStore and PrimeBlocks.
Learn More