Questions tagged [pokeapi]

69 questions
5
votes
3 answers

Displaying object into HTML in Angular

sorry for the noob question. I created an http request and retrieved some pokemon data and put it in an object called pokemon, like so: export class AppComponent implements OnInit{ title = 'Pokedex'; apiURL =…
Andrew Ozeki
  • 55
  • 1
  • 2
  • 6
3
votes
4 answers

Unable to display pokemon image from pokeapi.co

I am having an issue where I can't seem to be able to display the pokemon images on my react front end, this is the api: https://pokeapi.co/ import React, { Component } from 'react'; class Card extends Component { state = { name: "", …
RMP1992
  • 55
  • 1
  • 1
  • 9
2
votes
1 answer

I have an error when trying to obtain certain statistics (stats) from the PokeAPI using Axios and Node.js

I have a problem, I'm trying to work with the Pokemon API, but when I try to access the attack, HP and speed stats, it shows undefined for all the Pokemons! Could anyone tell me what's wrong with my API call? const axios = require('axios'); const…
Ramses
  • 23
  • 5
2
votes
1 answer

Why does my react function function iterate twice?

I am currently trying out a project with the PokeAPI. And have used his guide for help. I can't get rid of the problem that the function iterates twice when called in the useEffect. When I run the following code with the getAllPokemons in the…
2
votes
1 answer

Best way to handle a large set of images from an API using React/Redux?

I've been messing around with this Pokemon api https://pokeapi.co/ and building a very rough version of a Pokedex by listing all of the pokemon on a page and making them links that send you to a more detailed page of the Pokemon you…
SBT23434
  • 175
  • 1
  • 1
  • 14
1
vote
1 answer

How can I get the right photos for the searched Pokémon in svelte

Here is the app.svelte code, I have a search bar there where you can search the Pokémon by the name of it, but it does not show the right photo of the searched Pokémon :