Answers for "react http get request"

0

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 }));
Posted by: Guest on August-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language