We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7581a6f commit 235d3b1Copy full SHA for 235d3b1
src/frameworks/react/-snippets/resources.tsx
@@ -28,11 +28,11 @@ const Stopwatch = Resource(({ on }) => {
28
// #endregion
29
30
// #region component
31
-import { use } from "@starbeam/react";
+import { useResource } from "@starbeam/react";
32
33
export const Clock = () => {
34
// #highlight:next
35
- const time = use(() => Stopwatch, []);
+ const time = useResource(() => Stopwatch, []);
36
37
return <div>{time ?? "now"}</div>;
38
};
0 commit comments