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

Function showAlert

Grocery-Bud/src/App.js:44–46  ·  view source on GitHub ↗
(show = false, type = '', msg = '')

Source from the content-addressed store, hash-verified

42 };
43
44 const showAlert = (show = false, type = '', msg = '') => {
45 setAlert({ show, type, msg });
46 };
47 const clearList = () => {
48 showAlert(true, 'danger', 'empty list');
49 setList([]);

Callers 3

handleSubmitFunction · 0.85
clearListFunction · 0.85
removeItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected