I am unable to make the simplest example of react-spring work:
import { useSpring } from 'react-spring/three'
export const myComponent = () => {
const [spring, setSpring] = useSpring(() => ({ xpos: 0 }))
setSpring({xpos: 10})
return (
<Canvas />
)
}
It gives me this:
Uncaught TypeError: setSpring is not a function