Start renaming

This commit is contained in:
2026-11-11 11:45:20 -03:00
parent ae22ec5276
commit 216d54a0ae
179 changed files with 890 additions and 449 deletions
+5 -5
View File
@@ -29,7 +29,7 @@ An island can be used anywhere like a regular Preact component. Fresh will take
care of making it interactive on the client.
```tsx main.tsx
import { App, staticFiles } from "fresh";
import { App, staticFiles } from "sweet";
import MyIsland from "./islands/my-island.tsx";
const app = new App()
@@ -77,7 +77,7 @@ A powerful feature of Fresh is that you can pass server-rendered JSX to an
island via props.
```tsx routes/index.tsx
import { staticFiles } from "fresh";
import { staticFiles } from "sweet";
import MyIsland from "../islands/my-island.tsx";
const app = new App()
@@ -126,7 +126,7 @@ constant from `fresh/runtime` to guard browser-only code. It is `false` on the
server and `true` in the browser:
```tsx islands/my-island.tsx
import { IS_BROWSER } from "fresh/runtime";
import { IS_BROWSER } from "sweet/runtime";
export function MyIsland() {
// Return any prerenderable JSX here which makes sense for your island
@@ -150,7 +150,7 @@ Use an island to register and render custom elements:
```tsx islands/MyElement.tsx
import { useEffect } from "preact/hooks";
import { IS_BROWSER } from "fresh/runtime";
import { IS_BROWSER } from "sweet/runtime";
export function MyElement() {
useEffect(() => {
@@ -182,7 +182,7 @@ inside an island:
```tsx islands/ThirdPartyElement.tsx
import { useEffect } from "preact/hooks";
import { IS_BROWSER } from "fresh/runtime";
import { IS_BROWSER } from "sweet/runtime";
export function ShoelaceButton() {
useEffect(() => {