We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b57e8b3 commit 303f6cbCopy full SHA for 303f6cb
stories/hooks/useAnimation.stories.tsx
@@ -1,5 +1,5 @@
1
import { StoryObj } from "@storybook/react";
2
-import { useCallback, useEffect, useState } from "react";
+import { useEffect, useState } from "react";
3
import { TypedEasing, useAnimation } from "../../src";
4
5
export default { component: useAnimation };
@@ -70,7 +70,7 @@ export const Hello: StoryObj = {
70
</g>
71
</svg>
72
<div>
73
- <button onClick={animate.play}>play</button>
+ <button onClick={() => animate.play()}>play</button>
74
<button onClick={animate.pause}>pause</button>
75
<button onClick={animate.reverse}>reverse</button>
76
<button onClick={animate.finish}>finish</button>
0 commit comments