Everything from the start
Lifecycle hooks
ES6 promises, async/await
Fetch data from external API
Deployment
151 Pokemon in the Pokedex left!
Name
Type
Likes
Display
...
...
10
...
...
8
...
...
7
...
...
7
...
...
7
...
...
5
...
...
2
...
...
2
Display
Display
Display
Display
Display
Display
Display
Display
Id
...
...
...
...
...
...
...
...
Pikachu
If you wave its tail, it will try to bite you
Delete
Like
App
NavBar
PokeTable
PokePage
pokedex
PokeRow
Description
Demo
Mount
Update
Unmount
constructor
render
componentDidMount
render
componentDidUpdate
componentWillUnmount
const getPokemon = () => {
startLoadingAnimation();
return fetch(`https://pokeapi.co/api/v2/pokemon/1/`)
.then(res => res.json())
.then(data => data.name)
.catch(err => `Error while fetching pokemon name : ${err}`)
.finally(stopLoadingAnimation());
}
const getPokemon = async () => {
try {
startLoadingAnimation();
const res = await fetch(`https://pokeapi.co/api/v2/pokemon/1/`);
const data = await res.json();
return data.name;
} catch (err) {
return `Error while fetching pokemon name : ${err}`;
} finally {
stopLoadingAnimation();
}
}
151 Pokemon in the Pokedex left!
Name
Type
Likes
Display
...
...
10
...
...
8
...
...
7
...
...
7
...
...
7
...
...
5
...
...
2
...
...
2
Display
Display
Display
Display
Display
Display
Display
Display
Id
...
...
...
...
...
...
...
...
Pikachu
If you wave its tail, it will try to bite you
Delete
Like
Instructions