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

Function dictionaryApi

Dictionary-App/src/App.js:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }));
29
30 const dictionaryApi = async () => {
31 try {
32 const data = await axios.get(
33 `https://api.dictionaryapi.dev/api/v2/entries/${category}/${word}`
34 );
35 console.log(data);
36 setMeanings(data.data);
37 // console.log(meanings);
38 } catch (err) {
39 console.log(err);
40 }
41 };
42
43 useEffect(() => {
44 dictionaryApi();

Callers 1

App.jsFile · 0.85

Calls 2

getMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected