Fetches meal data from https://www.themealdb.com/ and displays according to input. Input can be based on meal name, meal category, meal locality or ingredients.
####Router Router for home page and eahc Recipe page.
####Home Parent Component that fecthes the input query from the mealDB API and sends the data to the child components. Before sending the data, it filters and organizes each recipe element in the mealtags object, which is a map that has cetgeory as key and an array of all the recipes that belong to that category.
For now, the data is being fetch in the Searches Component. Parent Component, sends an API request with each new input after clicking the search button. The options to search for new meal menus lists are by Name, Category (Seafood, Vegeterian...), Area (Country) or Ingredient.
Child component for Searches to display all the possible types of input.
Child component for Searches to map the queried data and display each meal's title and photo.
- Feb 25, 2020: Was able to finally display a new queried list of menus with ComponentDidUpdate.
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify