Undoable counter with persistent state

Using TypeScript and React. Could probably be cleaner, but works.


Requested feedback

Any bugs or React / TS anti-patterns.

Comments

mankybansal(over 1 year ago)

I like that this takes care of the `redo` being disabled after `undo` + `add`. It leads to confusing state otherwise.

You must be signed in to post a comment

Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.