Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get request react

// Simple GET request using fetch
fetch('https://api.npms.io/v2/search?q=react')
  .then(response => response.json())
  .then(data => this.setState({ data: data.feed }));
Source by jasonwatmore.com #
 
PREVIOUS NEXT
Tagged: #request #react
ADD COMMENT
Topic
Name
4+7 =