diff --git a/documentation/pages/docs/api/ref.mdx b/documentation/pages/docs/api/ref.mdx index 46bacf3..83ebf6d 100644 --- a/documentation/pages/docs/api/ref.mdx +++ b/documentation/pages/docs/api/ref.mdx @@ -18,7 +18,7 @@ Creates a new ref with the given value. Signature: ```ts -ref(value: T): Ref +ref(value: () => T): Ref ``` Returns: @@ -31,7 +31,7 @@ Example: ```ts import { ref } from '@nalanda/core'; -const getCountRef = ref(0); +const getCountRef = ref(() => 0); ```