|
|
|
|
|
by pdyck
3148 days ago
|
|
When the component is mounted on the page, a planet is fetched from an api. Then the response body is parsed to JSON. After that the object is added to the component state. When there was an error it is added to the state instead. |
|