You can use any package to manage the network state, for your confort redux
and react-query
are already installed
Create a paginated table containing the pokemons from the pokedex Each row of the table must contain
- name of the pokemon
- types (grass, fire, etc...)
Add an input to filter the list by name.
Please note that the API provides no search method, which means the filtering method must be run on the front-end, on the result from /pokemon
endpoint, making sure we get all the pokemons and not the limited results.
Add a way to sort the pokemon in ascending/descending order
See pokeapi
You will rely on the pokeAPI which requires no authentication:
https://pokeapi.co/api/v2/pokemon?limit=20&offset=20
to retrieve the N pokemon from O offsethttps://pokeapi.co/api/v2/pokemon/bulbasaur
orhttps://pokeapi.co/api/v2/pokemon/1
to retrieve a given pokemon (here bulbasaur)