'How read the images in DDRAGON LOL API
I am using this API: https://ddragon.leagueoflegends.com/cdn/12.4.1/data/en_US/champion.json
I can read well all the parameters (name, id, etc.) but when I want to show the images of the champ, it doesn't show.
Leave my code here, tried everything:
let elements = [];
for (let i = 0; i < 3; i++) {
elements.push(
<Champ
nombre={this.state.champions.data.Akali.image[0]}
img={this.state.champions.data.Akali.image.sprite}
/>
);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
