Start renaming
This commit is contained in:
@@ -44,7 +44,7 @@ For more complex scenarios, or to set page metadata from
|
||||
[islands](/docs/concepts/islands), Fresh ships with the `<Head>`-component.
|
||||
|
||||
```tsx routes/about.tsx
|
||||
import { Head } from "fresh/runtime";
|
||||
import { Head } from "sweet/runtime";
|
||||
|
||||
export default define.page((ctx) => {
|
||||
return (
|
||||
@@ -66,7 +66,7 @@ component state changes, the document head is updated automatically:
|
||||
|
||||
```tsx islands/MetaUpdater.tsx
|
||||
import { useState } from "preact/hooks";
|
||||
import { Head } from "fresh/runtime";
|
||||
import { Head } from "sweet/runtime";
|
||||
|
||||
export default function MetaUpdater() {
|
||||
const [title, setTitle] = useState("Welcome");
|
||||
|
||||
Reference in New Issue
Block a user