Hacker News new | ask | show | jobs
by tjelen 2047 days ago
And all that is just for being able to write `response = await fetch(...)` instead of `fetch(...).then(...)`.
1 comments

My fault. Didn't know that ES2015 actually supported `.then()`. Anyway, this was also an exercise for me to learn about babel (I use CRA all the time so have no idea what is going on behind the scenes) and this was a nice intro!