TypeScript Tip 💡 ️Did you know? You can assign field variables inline using TypeScript ✌️
React Tip 💡 You can use 'React.Children.toArray' to let React automatically assign a key to its children.
TypeScript Tip 💡 If you cannot infer or define the type, use 'unknown' instead of 'any'. Using 'unknown' forces you to null-check or narrow the type before using it. 'unknown' is the type-safe counterpart of 'any'.
🔹 Promise.allSettled() The Promise.allSettled() method returns a promise that resolves after all of the given promises have either fulfilled or rejected, with an array of objects that each describes the outcome of each promise.
🔹 Promise.all() The Promise.all() method takes an array of promises as an argument and returns a single Promise that resolves to an array of the results of the input promises.
🔹 Promise.race() The Promise.race() method returns a promise that fulfills or rejects as soon as one of the promises in an array fulfills or rejects, with the value or reason from that promise.
🔹 Promise.any() The Promise.any() method takes an array of promises as an argument and, as soon as one of the promises fulfills, returns a single promise that resolves with the value from that promise.