Skip to content

useFavicon ​

A hook that set the favicon of the page.

Code demonstration ​

API ​

typescript
useFavicon(href: string);

Params ​

PropertyDescriptionTypeDefault
hreffavicon URL, support svg/png/ico/gif 后缀的图片Ref<string>-

Source ​

Source · Document · Demo

Released under the MIT License.