Preview:
function addList(list) {
  setLists([...lists, list]);
}
function removeList(id) {
  const tempLists = lists.slice();
  const index = tempLists.findIndex(list=> list.id === id);
  tempLists.splice(index, 1);
  setLists(tempLists);
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter