Iago Lastra wrote about how JavaScript dates are about to be fixed – which you think should really help control the JavaScript dates population.
Robby Pruzan wrote a deep dive on how he Implemented React from scratch.
James Cowling built Cronvex – an implementation of user space crons that let you register periodic jobs that call third-party http endpoints. It’s similar to EasyCron or FastCron, but it’s completely free, open source, and built on top of Convex. [sponsored]
Max Stoiber wrote about how Developer tools are different than tools for any other profession.
Chrome 129 will come with two new snap events for JavaScript – scrollSnapChange
and scrollSnapChanging
. Snip snap, snip snap.
Over-the-wire is a network inspection library for Node. Not to be confused with Through-the-wire
, which is a Kanye-inspired library that drinks a Boost for breakfast, and Ensure for dessert.
Max Schmitt wrote a short article on why Toasts are Bad UX. I prefer to order pancakes, I just sip the sizzurp.
The React Universe Conf is on September 5-6, featuring a stellar lineup including Dan Abramov, Delba de Oliveira, Kent C. Dodds, and many more! 🚀✨ Can’t make it in person? Register for FREE Livestream Access and join from anywhere! [sponsored]
Trevor Lasn wrote about The only widely recognized JavaScript feature ever deprecated, and other scary stories to tell in the dark.
React Email 3.0 comes with a new component library, RSC support, and everything else you need to build a newsletter of 214,720 super close friends who will definitely all show up to my Deno-themed improv show next week, right?
In the initial example, we are appending each list item to the DOM as we create it. This is inefficient because the DOM is updated each time we append a new list item. Instead, we can create a document fragment and append all of the list items to the fragment. Then, we can append the fragment to the DOM. This way, the DOM is only updated once.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dynamic List</title>
</head>
<body>
<ul id="myList"></ul>
<script>
let items = [...Array(1000).keys()].map((i) => `Item ${i}`);
let ul = document.getElementById("myList");
let fragment = document.createDocumentFragment();
for (let item of items) {
let li = document.createElement("li");
li.textContent = item;
fragment.appendChild(li);
}
ul.appendChild(fragment);
</script>
</body>
</html>
Built with ❤️ by uidotdev
50 W Broadway Ste 333 PMB 51647 Salt Lake City, Utah 84101
Unsubscribe .keys()].map((i) => `Item ${i}`);
let ul = document.getElementById("myList");
let fragment = document.createDocumentFragment();
for (let item of items) {
let li = document.createElement("li");
li.textContent = item;
fragment.appendChild(li);
}
ul.appendChild(fragment);
</script>
</body>
</html>
由 ❤️ 建成$85
50 W 百老汇 Ste 333 PMB 51647 盐湖城, 犹他州 84101
未订阅
发布者