Writing a Tiny Undo/Redo Stack in JavaScript
You might prefer to lean upon an established approach (using Immer patches perhaps), but if you want to implement something small yourself, this might help. - https://blog.julik.nl/2025/03/a-tiny-undo-stack
#javascript
Post #9796
1.88K