Best Ramen is an app that shows the highest rated ramen places in the world based on Zomato API (API Key is not hidden in .env as it's a free and instant API key that anyone can generate via this URL and allows 1000 calls/day).
The app allows changing the number of results displayed on the page via input field and you can visit the detail page of each restaurant.
Best Ramen was my second React app, and it was initally set up using the Create React App boilerplate.
- Install dependencies
npm install
- Start the application
npm start
- Convert cURL from Zomato API to fetch
- Use isLoading and isError states to display loading and error messages while fetching
- Use Ant Design component to display loading state
- Map restaurants data fetched from a Zomato API (using API Key) to a RestaurantList
- Set a default restaurant image if it doesn't have a featured image
- Change the number of Restaurants displayed in RestaurantList with an input field and refresh automatically
- Use React Router to dynamically generate RestaurantDetail URLs and pages from RestaurantList
- Use nested destructuring for cleaner return statements in RestaurantDetail component
- Work on CSS