()
| 76 | } |
| 77 | //To save data to Local Storage |
| 78 | const saveLocal = () => { |
| 79 | localStorage.setItem("myLibrary", JSON.stringify(myLibrary)); |
| 80 | } |
| 81 | |
| 82 | const restoreLocal = () => { |
| 83 | myLibrary = JSON.parse(localStorage.getItem("myLibrary") || "[]"); |
no test coverage detected