@ejim11
Posted
To make your data persist, you can use either localStorage or a backend like firebase. For local storage, after adding an data gotten from the api to the array that is used to display the shortened links, you can add the array to the localStorage.
//code localStorage.setItem("arrayName", array); this code above stores the array in the localStorage as a string. to get the array back, localStorage.getItem("arrayName");
the above code should be in a function that gets called every time the page loads. In the function, check whether there is anything stored and if there is, write a code that uses the data from localStorage to display the shortenedLinks. I know this is not concise but I hope it helps..