diff --git a/dev/examples/useSpring.tsx b/dev/examples/useSpring.tsx
index 5451f969ef..f28e2d9133 100644
--- a/dev/examples/useSpring.tsx
+++ b/dev/examples/useSpring.tsx
@@ -10,16 +10,16 @@ const spring = {
function DragExample() {
const dragX = useMotionValue(0)
- // const dragY = useMotionValue(0)
+ const dragY = useMotionValue(0)
const x = useSpring(dragX, spring)
- // const y = useSpring(dragY, spring)
+ const y = useSpring(dragY, spring)
return (
Drag
@@ -27,7 +27,7 @@ function DragExample() {
}
function RerenderExample() {
- const [mousePosition, setMousePosition] = useState({ x: null, y: null })
+ const [{ x, y }, setMousePosition] = useState({ x: null, y: null })
const updateMousePosition = useRef((e) => {
setMousePosition({ x: e.clientX, y: e.clientY })
@@ -35,11 +35,11 @@ function RerenderExample() {
const size = 40
const ref = useRef(null)
- // console.log(x)
+
return (