Skip to content

Commit 461ab9e

Browse files
authored
docs: update tween how to use it demo (#810)
2 parents d2970a1 + 74b2f50 commit 461ab9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tween/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { createTween } from "@solid-primitives/tween";
2828
const [value, setValue] = createSignal(0);
2929
const tweenedValue = createTween(value, { duration: 500 });
3030

31-
setMyNumber(100);
31+
setValue(100);
3232
// tweenedValue will now smoothly transition from 0 to 100 over 500 ms
3333
```
3434

0 commit comments

Comments
 (0)