re: Enhance Your React App With Undo and Reset Abilities VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hi Pavel and thank you for the kind compliment! That is a good question! To implement an undo/reset feature for specific parts of the state, you c...
 

That would be great if you want to do it. Anyway I would try to implement some sort of Command pattern with the ability to "redo" the command as well (something I missed in this tutorial) 🤔, so the friends array are constructed based on the actions performed, and not maintaining two separate arrays.

code of conduct - report abuse