How to render useSpring
value?
#2278
Answered
by
Albx68
amirhhashemi
asked this question in
Q&A
-
I have a I expected something like this to work: const Counter = ({ count }) => {
const springCount = useSpring(count)
return <span>{springCount}</span>
} But it doesn't. I have a few questions:
const motionCount = useMotionValue(count)
const springCount = useSpring(motionCount)
|
Beta Was this translation helpful? Give feedback.
Answered by
Albx68
Aug 10, 2023
Replies: 1 comment 1 reply
-
https://codesandbox.io/p/sandbox/fast-sea-th2hgv?file=%2Fsrc%2FApp.tsx%3A7%2C1 I hope this works for you :D you can look at this for reference https://www.framer.com/motion/animation/#animate-content |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
amirhhashemi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@amirhhashemi
https://codesandbox.io/p/sandbox/fast-sea-th2hgv?file=%2Fsrc%2FApp.tsx%3A7%2C1
I hope this works for you :D
you can look at this for reference https://www.framer.com/motion/animation/#animate-content