Self-review: Can you fetch data? - Advanced React

Self-review: Can you fetch data? - Advanced React

  1. True or False: When invoking the fetch() function to get some JSON data from an API, you should pass it a URL.

    • True

    • False

  2. True or False: After invoking the fetch() function, you need to add a call to the then() function.

    • True

    • False

  3. Choose the right way to handle the response from a fetch call.

    • then( response => response.json())

    • then( response => json() )

    • then( json => response() )