Smiley Stamp
✓ Published0🌍 Public
A red crosshair target follows the mouse cursor across a blank SVG canvas. Clicking the mouse stamps a yellow smiley face with black eyes and a curved mouth at that location. The application uses React with the `useState` and `useCallback` hooks to track mouse movement and click events, dynamically rendering `Target` and `Smile` components. The target and smiley shapes are composed of SVG circles and lines, with the smiley’s eye offset and stroke width passed as props.
AI-generated descriptionA program that follows your mouse with crosshairs, then stamps a smiley on the screen wherever you click. Adapted from Professor Kelleher's original smile and mouse follower.
MIT Licensed