Course lesson

Augment React Resource JSON with Custom Properties

You're never stuck with the data you get from the server. The Pokeapi doesn't have an id property on Pokemon but we can transform our response to include exactly what we need.

Duration
2 min
Access
Pro
Transcript
Available

You're never stuck with the data you get from the server.
The Pokeapi doesn't have an id property on Pokemon but we can transform our response to include exactly what we need.

With a little destructuring assignment and object spread we can augment our API with helpful properties