Skip to content

Commit

Permalink
Update meta.md
Browse files Browse the repository at this point in the history
Added favicon example code.
  • Loading branch information
omerycll authored Sep 26, 2024
1 parent 6f83cf3 commit 4fd0b5d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/route/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@ export const meta: MetaFunction = () => {
};
```

The code adds a [`<link>` tag][link-element] tag for a favicon.

```tsx
export const meta: MetaFunction = () => {
return [
{
tagName: 'link',
rel: "icon",
href: "/favicon.png",
type: "image/png",
},
];
};
```

## `meta` Function Parameters

### `location`
Expand Down

0 comments on commit 4fd0b5d

Please sign in to comment.