Scriptified logo

Scriptified

Subscribe
Archives
May 13, 2024

Issue #21 - React 19 Beta, understand edge compute and more

Headshot

Read issue on web

Learn about flushSync in React, easily grab SVGs for all major companies, changes in React 19, and a lightning fast CSS parser.

Tip of the day

flushSync lets you force React to flush any state updates inside the callback synchronously. This ensures that, by the time the next line of code runs, React has already updated the DOM.

flushSync(() => {
  setSomething(123);
});
// By this line, the DOM is updated.

Articles

React 19 Beta

React just dropped the beta of their new major release, and it comes with a lot of new features and fixes this time around, which includes stable APIs for actions, better error messages, ability to pass ref as a prop without using forwardRef and so much more.

by The React Team

What is Edge Compute? It’s kind of like knitting dog hats

Join Austin as he explains what edge compute is, why it exists and why should you care about it with a great analogy of knitting dog hats.

by Austin Gil


Tools

svgl

A beautiful library to grab SVG logos of all companies.

by Pablo Hdez

Lightning CSS

An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.

by Devon Govett


Tech Talks

So You Think You Know Git

Scott Chacon's FOSDEM 2024 talks about Git Tips and Tricks including configs, monorepo, and more.

by Scott Chacon


Quiz

How can we log the values that are commented out after the console.log statement?

function* startGame() {
  const answer = yield 'Do you love JavaScript?';
  if (answer !== 'Yes') {
    return "Oh wow... Guess we're done here";
  }
  return 'JavaScript loves you back ❤️';
}

const game = startGame();
console.log(/* 1 */); // Do you love JavaScript?
console.log(/* 2 */); // JavaScript loves you back ❤️

game.next("Yes").value and game.next().value
game.next.value("Yes") and game.next.value()
game.next().value and game.next("Yes").value
game.next.value() and game.next.value("Yes")


This week in GIF

When I run my code to see how it behaves (via https://thecodinglove.com)

When I run my code to see how it behaves (via https://thecodinglove.com)


Liked this issue? Share on Twitter or read previous issues.

Don't miss what's next. Subscribe to Scriptified:
GitHub X
Powered by Buttondown, the easiest way to start and grow your newsletter.