Skip to content

Commit

Permalink
fix ref docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kepta committed Nov 6, 2023
1 parent 42efdfa commit 655396b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/pages/docs/api/ref.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Creates a new ref with the given value.
Signature:

```ts
ref(value: T): Ref<T>
ref(value: () => T): Ref<T>
```

Returns:
Expand All @@ -31,7 +31,7 @@ Example:
```ts

import { ref } from '@nalanda/core';
const getCountRef = ref(0);
const getCountRef = ref(() => 0);

```

Expand Down

0 comments on commit 655396b

Please sign in to comment.