Goal: Create a user admin portal with an Undo + Redo system.
Requirements:
- Users have the following information: First Name, Last Name, and Email.
- Users can be created and deleted.
- Each action should be "autosaving", ie. the backend (in this case just
ApiService.ts) should be updated and kept in sync. Therefore, for undo we must roll back the local state as well as make the appropriate update in the remote state. Same for redo. - Undo/redo should work similarly to what we are all familiar with in other apps (and as it works in the text editor you are likely currently using!).
- If a user creation is undone, if redone, the user should be recreated with the same user id.
- Do NOT modify
ApiService.ts - Design should be responsive and please follow
Design.pngfile for UI reference.
We have given you some very basic react components to get started.
Feel free to include other dependencies if you think they will be helpful. However, do NOT include any dependencies to implement undo/redo.