Become a member
Sign in
Sam Vs Code
Sam Vs Code

Sam Vs Code

40 Following
1 Followers
  • Profile
  • Claps
  • Highlights

Highlighted by Sam Vs Code

See more

From Why I won’t be using Fetch API in my apps by Shahar Talmi

function addUser(details) {
return fetch('https://api.example.com/user', {
mode: 'cors',
method: 'POST',
credentials: 'include',
body: JSON.stringify(details),
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-XSRF-TOKEN': getCookieValue('XSRF-TOKEN')
}
}).then(response => {
return response.json().then(data => {
if (response.ok) {
return data;
} else {
return Promise.reject({status: response.status, data});
}
});
});
}

From Watch & Compile your Sass with npm. by Brian Han

$ npm install -D node-sass nodemon

Claps from Sam Vs Code

See more

Here’s a React v16+ Cheat Sheet (PDF/JPG/Custom themes)

jsmanifest

Fractal — Nodejs app structure

Deepak Gupta

Threads in Node 10.5.0: a practical intro

Fernando Doglio