Skip to content
On this page

useFavicon

A hook that set the favicon of the page.

Code demonstration

API

useFavicon(href: string);
useFavicon(href: string);

Params

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

Source

SourceDocsDemo