Skip to content

Commit e5d86d7

Browse files
committed
Update preact API usage
1 parent bae1f22 commit e5d86d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frameworks/preact/$snippets/resources.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { use } from "@starbeam/preact";
3232

3333
export const Clock = () => {
3434
// #highlight:next
35-
const time = use(() => Stopwatch, []);
35+
const time = use(Stopwatch);
3636

3737
return <div>{time ?? "now"}</div>;
3838
};

0 commit comments

Comments
 (0)