alberthuynh91 / pokemon-api-pagination

A simple React app demonstrating pagination with pokeapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pokemon-api-pagination

A simple React app demonstrating pagination with pokeapi. You can view the deployed app here

Prompt

/**
 * APIs and Pokémons
 * =================
 *
 * Using the PokéAPI, write a program to obtain the names of Pokémon
 * species known to the API. Use pagination when obtaining
 * the species names - Add buttons to view the next/previous set of
 * results. ~ FOR IC4 ~ Under the next/previous buttons, also add buttons for all
 * possible pages that populate with results when you click the page.
 * Present the names in alphabetical order.
 *
 *
 * Note: this is a public API for which no API key/token is needed.
 *
 * You may refer to the PokéAPI docs here:
 * https://pokeapi.co/docs/v2
 * Hint: You will want to use the
 * https://pokeapi.co/api/v2/pokemon-species/ endpoint.
 * **/

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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.

About

A simple React app demonstrating pagination with pokeapi


Languages

Language:JavaScript 70.8%Language:HTML 19.8%Language:CSS 9.5%