Stop using .then()

Опубликовано: 21 Октябрь 2024
на канале: Carlos Mafla
155
8

When you are getting data from an API you usually use .then() .catch() methods
but there's a better way, instead we could use the Async/Await syntax so the code looks synchronous and a lot easier to read with no callback functions

#shorts #javascript #webdevelopment #asyncawait