In this week's project, I practiced React state skills by fetching and posting data to an API. It included the useState and useEffect.
We've built a simple API to collect 'happy thoughts'in a Twitter-like web app.
You can take a look at the web page here: https://ninamansster-happy-thoughts.netlify.com/
GET https://technigo-thoughts.herokuapp.com/
POST https://technigo-thoughts.herokuapp.com/
POST https://technigo-thoughts.herokuapp.com/THOUGHT_ID/like
- How to use APIs in React, firing requests within
useEffect
. - How to put the result of API responses into React state to show in the page.
- What it's like to work with an API which you both send and receive data from.