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

Function fetchData

react-ecommerce/src/App.js:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20 useEffect(() => {
21 async function fetchData() {
22 const res = await butter.content.retrieve(["cookies"], {
23 order: "name",
24 });
25 const { data } = await res.data;
26 const allProducts = data.cookies;
27 setProducts(allProducts);
28 }
29 fetchData();
30 }, []);
31

Callers 1

AppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected