Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch

  fetch(APIURL)
      .then((res) => res.json())
      .then((users) => setData(users))
      .catch((err) => console.log(err));
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #fetch
ADD COMMENT
Topic
Name
8+4 =