Create a self contained component that will display a single quote. Use the following api: https://type.fit/api/quotes
NOTE You will only be calling the API one time and saving the data in state.
You will be using useState
and useEffect
Create the JSX that displays a placeholder for the dynamic content and return
to display on the DOM. You will be displaying the quote and the author.
useEffect
to fetch the quote data
useState
to store quote data
Create a function that will extract a single quote and displayed it in the JSX you wrote in Step 1
Instead of displaying quote[index], create a function that will choose a random quote and display it.
Add a button that when clicked will display a different quote.