Explore / React

Redo/Undo

Medium · React

What to build

Users click a canvas to place dots. Ctrl+Z removes the last dot (undo), Ctrl+Y restores it (redo). The interesting part: what happens to the redo stack when the user places a new dot after undoing?

Build it in the browser editor on GrindPrep (desktop) and compare with the reference solution.