{"version":"1.0","type":"rich","title":"FCC: Mouse follower using React","description":"A single black circle follows the mouse cursor across a full-window SVG canvas. The React component tracks pointer coordinates via an `onMouseMove` handler, storing them in state with the `useState` hook and updating them through a `useCallback`-wrapped event listener. The circle’s `cx` and `cy` attributes are re-rendered with each mouse movement, using the viewport dimensions from `window.innerWidth` and `window.innerHeight`. The example demonstrates React’s declarative UI updates for interactive SVG visualizations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/231bf71b4def43b580fd2f6b278b4914?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}