From 655396bc28743d47bdabb7955f511cf2430c3aa3 Mon Sep 17 00:00:00 2001 From: Kushan Joshi <0o3ko0@gmail.com> Date: Sun, 5 Nov 2023 21:31:49 -0500 Subject: [PATCH] fix ref docs --- documentation/pages/docs/api/ref.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); ```