useFavicon ​
Hook that manages the favicon
typescript
import { useFavicon } from '@elysiumorg/solid-use';Usage ​
typescript
const { href, set } = useFavicon('https://www.google.com/favicon.ico');
Demo ​
Api ​
Parameters
| Name | Type | Default | Note | 
|---|---|---|---|
| initialFavicon? | string | - | The initial favicon. If not provided, the current favicon will be used |