To implement undo/redo functionality with
React you don’t need to use
Konva‘s serialization and deserealizations methods.
You just need to save history of all state changes of your app. There are many ways to do it. It may be simpler do to that if you use immutable structures.
Instructions: try to move square. Then undo/redo your actions.