I am trying to make a toggle switch with React and GSAP, using refs. The problem is with the cursor ref: the first time we invoke setOption it just works fine.
setOption