Skip to content

Instantly share code, notes, and snippets.

View gracekrcx's full-sized avatar

Grace gracekrcx

  • Taiwan
View GitHub Profile
apiExample = ()=>{
const API_URL = '/path';
fetch(API_URL,{
method:'post'
headers: {
'content-type': 'application/json'
},
}).then(function(response){
return response.json()
}).then(data=>{