Skip to content

Instantly share code, notes, and snippets.

@kubr2017
kubr2017 / gist:1b2dd0868b31a3c45020587b9a153264
Created March 18, 2019 14:28
simple scheme async request
class App extends Component {
state = {isLoading:true,
query:'',
focus:'',
places:[]}
getVenues = (location) => {
const endPoint = 'https://api....'
const parameters = {...bla-bla...}
axios.get(endPoint+new URLSearchParams(parameters))