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);