-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
It is really great that you are using arrow functions!
Also if we use arrow functions and don't use curly brackets then we don't need to return, it returns automatically, so let us look at this code:
From:
Lines 42 to 44 in f8f8617
| }).then(response => { | |
| return response.json(); | |
| }).then(jsonResponse => { |
To:
}).then(response => response.json())
.then(jsonResponse => {
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels