Fetch an API with React Hooks

added by JavaScript Kicks
11/24/2019 12:38:11 PM

481 Views

In my previous blog post, I explained the React Team's reasoning to add hooks to the library. We also compared a class component to a function component that utilized the useState and useEffect hooks. Today, we will walk through how to fetch NASA's API, display data to our browser, and explain where the two components vary.


0 comments