This is a simple Pokedex application built using React. It fetches data from the PokeAPI to display a list of Pokemon and allows users to search for specific Pokemon. The app also features a loading spinner and pagination.
- Display a list of Pokemon with their official artwork
- Search for specific Pokemon by name
- Pagination to navigate through the list of Pokemon
- Loading spinner for data fetching
-
Clone the repository:
git clone https://github.com/your-username/pokedex-app.git cd pokedex-app
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
to view the app.
The main component that renders the Pokemon
component.
import React from 'react';
import Pokemon from './components/Pokemon';
const App = () => {
return (
<>
<Pokemon />
</>
);
};
export default App;