GithubHelp home page GithubHelp logo

ricomedi / dog-search-using-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

Created with CodeSandbox

Home Page: https://codesandbox.io/p/github/RicoMedi/Dog-Search-using-API

HTML 37.77% JavaScript 56.84% CSS 5.38%

dog-search-using-api's Introduction

Dog Image Gallery App

This repository contains a React application that displays images of dogs based on their breeds using the Dog API.

Features

  • API Requests: The app uses the Axios library to make requests to the Dog API (https://dog.ceo/api/) to fetch images of dogs based on different breeds.

  • Component Lifecycle: The application utilizes React's component lifecycle methods such as constructor, componentDidMount, and componentDidUpdate to manage the fetching and updating of dog images.

  • State Management: The app uses React's state to store and manage the list of dog images (doggos) and the selected breed (breed). State updates trigger re-renders to display the latest data.

  • Conditional Rendering: Conditional rendering is used to display either the dog images or a "No images found for this breed." message based on whether the doggos array is empty or not.

  • Search Functionality: The app includes a search feature that allows users to search for images of dogs by breed. The searchDogs function fetches images based on the user's input and updates the state accordingly.

*Not a real project, built for practice*

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.