I am currently working on a prototype recipe app called Forkify, which is being developed using Javascript, NPM, Babel, and Webpack. In this project, I am utilizing a custom API.
API URL : forkify-api.herokuapp.com
TO SEARCH RESULT
This API returns a list of recipes based on a specific query.
Path:
Example URL:
GET
This endpoint retrieves details about a specific recipe.
Path:
Example URL:
While running the project from the command line with the command npm start run, I encountered an error when trying to search for "pizza" in the input box (refer to the attached images).
https://i.sstatic.net/kqNun.png
https://i.sstatic.net/TdHlz.png
https://i.sstatic.net/UqBYC.png
Below are the key code files :
index.js
(Code snippet provided)
Search.js
(Code snippet provided)
searchView.js
(Code snippet provided)
Recipe.js
(Code snippet provided)
base.js
(Code snippet provided)
Can anyone provide a solution?