From 29e9e91b65284d78c343cfa3fcf72eaab3ab141a Mon Sep 17 00:00:00 2001 From: Daniel Ehrenberg Date: Mon, 1 Apr 2024 08:36:58 +0100 Subject: [PATCH] use => useResource --- src/frameworks/react/-snippets/resources.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frameworks/react/-snippets/resources.tsx b/src/frameworks/react/-snippets/resources.tsx index e3ff209..f569d14 100644 --- a/src/frameworks/react/-snippets/resources.tsx +++ b/src/frameworks/react/-snippets/resources.tsx @@ -28,11 +28,11 @@ const Stopwatch = Resource(({ on }) => { // #endregion // #region component -import { use } from "@starbeam/react"; +import { useResource } from "@starbeam/react"; export const Clock = () => { // #highlight:next - const time = use(() => Stopwatch, []); + const time = useResource(() => Stopwatch, []); return
{time ?? "now"}
; };