Point and Shoot
✓ Published1🌍 Public
A red target circle and crosshairs follow the mouse cursor across an SVG canvas, tracking movement through React's `useState` and `useCallback` hooks. The example uses React 16.9 and ReactDOM to render the `Target` component, which draws the circle and two perpendicular lines with configurable stroke widths and ratio. The code includes an empty `onClick` handler that logs the event, preparing to record shot holes in the `holes` state array, though no drawing occurs on click yet.
AI-generated descriptionA program that follows your mouse with a circle. Forked and unchanged (other than this readme) from Professor Kelleher's profile.
Working towards turning the circle into a target, then drawing something upon mouse click.
MIT Licensed