Export Image
Export Code

Mouse Follower

sv09

Last edited Aug 06, 2020
Created on Aug 06, 2020
Forked from HTML Starter

Add interactivity using React - a mouse follower - Mouse event - track mouse positions (x, y coordinates).

  • 'useState' hook from React - to define a state, the circle should be in.
  • 'useCallback' hook from React - to make the program optimal - using this, the mouse handler function won't be called repetitively.
MIT Licensed