Twitter's link shortener (t.co) is down
t.co3 pointsby sim0n0 comments
<div>
<p>this is easy</p>
{list.map((l) => <li>{l}</li>)}
</div>
> you automatically get loops, variable interpolation etc without having to invent a compiler and new syntax $('.my-component div').css({ background: 'yellow' })
vs. Array.from(document.querySelectorAll('.my-component div')).map(node => {
node.style.background = 'yellow';
}) const [user, notifications, messages] = await Promise.all([
getUser(),
getNotifications(),
getMessages(),
]);
Instead of having to wait on I/O sequentially like: const user = getUser();
const notifications = getNotifications();
const messages = getMessages();
if awaiting were implicit.