MCPcopy Create free account
hub / github.com/codemistic/Web-Development / clearList

Function clearList

Grocery-Bud/src/App.js:47–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 setAlert({ show, type, msg });
46 };
47 const clearList = () => {
48 showAlert(true, 'danger', 'empty list');
49 setList([]);
50 };
51 const removeItem = (id) => {
52 showAlert(true, 'danger', 'item removed');
53 setList(list.filter((item) => item.id !== id));

Callers

nothing calls this directly

Calls 1

showAlertFunction · 0.85

Tested by

no test coverage detected