3 ms·
Akin to JS replacing callbacks with async/await: 1. You can use both styles, even interchangeably. 2. The latter is superior. Async/await allows you to write
by paulddraper 3y ago
Akin to JS replacing callbacks with async/await:
1. You can use both styles, even interchangeably.
2. The latter is superior.
Async/await allows you to write asynchronous code in a synchronous style.
Hooks allow you to write stateful code in a stateless style.