RSS Amplifier

Relatable Code · Aug 29, 2022

A Bun in the Oven - looking in the new JavaScript Runtime and understanding React re-renders

0
Sign in to vote or save

Diego Ballesteros · Relatable Code

NOTE: This is my first newsletter after taking a break for personal-related matters for a couple of months. But it’s time to get back at it 😎

🗞 News

X avatar for @jarredsumner

Jarred Sumner@jarredsumner

Introducing Bun - an incredibly fast all-in-one JavaScript runtime.

bun.sh

Bun is a fast all-in-one JavaScript runtime

11:19 PM · Jul 5, 2022

1.7K Reposts · 7.65K Likes

Bun is a new JavaScript runtime much like Node or Deno but with some differing focuses. It absolutely broke into the JavaScript scene because of how fast it is. It completely out speeds Node and Deno (although Deno did say in future versions it will give a lot more emphasis to speed)

It has a tone of Web APIs already built-in and what caught my eye instantly is that it every file is automatically transpiled, specifically for TypeScript and JSX.

This means that React works right out of the box when using Bun!

Check out their website for more information:

https://bun.sh/

X avatar for @JoshWComeau

Josh W. Comeau@JoshWComeau

So, this week, I've been working on a lil’ tool to help illustrate the difference between state and refs in React. It's been surprisingly challenging, but I'm really happy with the results 😄 Here's a quick preview, I'll walk you through it in thread!

An illustrated stick of RAM is shown with several slots. Below, snapshots are taken of different state variables, and we see how the state/ref variables are allocated.

4:08 PM · Aug 25, 2022

111 Reposts · 1.14K Likes

Josh Comeau has come out with another amazing article this time focusing on why React re-renders with a ton of useful info-graphics and visuals. For React developers new and old I strongly suggest checking this out.

I definitely picked up a few things that were sometimes just brushed away as “React magic” 🧝‍♂️.

📦 More interesting Articles

⚛ React

🔧 Other

Read the original on relatablecode.substack.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.