Converting your Callback Functions into Async/Await Functions in under 3 minutes! (React 16)

preview_player
Показать описание
Callbacks are great when it's to make just 1 request. When things get more complex, it's much harder to read and debug. Here is how to transform your callback functions into async/await functions and make it much faster.

Рекомендации по теме
Комментарии
Автор

Just found about you on Fireship comment section, that was a clean tutorial. Keep up the good work !

xNexusDesign
Автор

You’re amazing! I made it to your oldest video. Everything you’ve posted is so useful. Thank you for the great content. 🤩

Maharddhika
Автор

I came because of your comment on Fireship, great content don't dare stop !

SlowedOutOfExistence
Автор

Biggest lesson we learned here: hadouken code.
Some searching around for this brings me to that same image. 🤣

Yep, it's great. C# got the async await feature in 2012, which works based on so called Task objects.
JS followed in 2017, to work based on Promise objects.


In C# it is a bit more powerful than in JS, but also more sensitive to issues, like deadlocks, etc. because of the involvement of parallelism by multiple threads in certain cases.

In JS it works always entirely single threaded (so you still have concurrency and asynchrony, but never parallelism), and therefore you have less issues, but also less power.

jongeduard
Автор

I have the goal to learn website making in a month, I am learning HTML then CSS then JAVASCRIPT and theeeen React, you think you have time to mentor me ? I have solid base of code

SlowedOutOfExistence
Автор

You have an error in this code

Hey, I just came across your yt channel and clicked on this video

Bitcoin (BTC) price is almost $90, 000 ($87, 621 in this moment)😁

sergiuderecichei