Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const App = () => {
- const APP_ID = "dde07f53";
- const APP_KEY = "f444f9be13e089a476cbb6b2e3882d70";
- useEffect( () => {
- getRecipes();
- },[]);
- const getRecipes = async () => {
- const response = await fetch(
- 'https://api.edamam.com/search?q=chicken&app_id=${APP_ID}&app_key=${APP_KEY}');
- const data = await response.json();
- console.log(data);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement