and despite being told "the best teams work in an office together" i don't know of any software i use that's actually written that way
and despite being told "the best teams work in an office together" i don't know of any software i use that's actually written that way
PREACH
The moment you have nine useStates in a component, you've already shot yourself in the foot.
PREACH
const controller = emitter.on('foo', cb)
controller.abort()
For everything, please. No more "and now let's call .removeListener() and provide the same fn by reference" 🤮
const controller = emitter.on('foo', cb)
controller.abort()
For everything, please. No more "and now let's call .removeListener() and provide the same fn by reference" 🤮
The problem with web dev currently is all the abstractions on top of HTML/CSS/JS/HTTP, by comparison, are quite leaky.
The problem with web dev currently is all the abstractions on top of HTML/CSS/JS/HTTP, by comparison, are quite leaky.
What makes React successful is that it’s also easy to hide those messes behind components and custom hooks.
🧹 This is called “sweeping it under the rug”
What makes React successful is that it’s also easy to hide those messes behind components and custom hooks.
🧹 This is called “sweeping it under the rug”
With useActionState, you can streamline complex form logic into a single hook—no more scattered state updates. It can handle actions on the client OR server 🧑🍳💋
Have you tried useActionState? What do you think?
With useActionState, you can streamline complex form logic into a single hook—no more scattered state updates. It can handle actions on the client OR server 🧑🍳💋
Have you tried useActionState? What do you think?
In React 19, the ref callback cleanup lets you handle DOM side effects directly.
But don’t take it from me… @tkdodo.eu wrote a great post about it: tkdodo.eu/blog/ref-cal...
In React 19, the ref callback cleanup lets you handle DOM side effects directly.
But don’t take it from me… @tkdodo.eu wrote a great post about it: tkdodo.eu/blog/ref-cal...
state changes→
render→
useEffect→
setState→
more renders.
Instead, compute derived state directly—no loops, just clean, efficient code!
#react
state changes→
render→
useEffect→
setState→
more renders.
Instead, compute derived state directly—no loops, just clean, efficient code!
#react
Shared component libraries are distributed coupling.
Each reused component is a contract.
Each contract needs maintenance.
Choose your dependencies carefully.
#Frontend
Alex Russell argues React’s abstractions, performance, and ecosystem are at odds with high-performing web experiences. He challenges engineers to ground technology choices in real user metrics rather than following trends
Alex Russell argues React’s abstractions, performance, and ecosystem are at odds with high-performing web experiences. He challenges engineers to ground technology choices in real user metrics rather than following trends
It’s far easier to spot what’s missing upfront than to scramble midway through development when something critical breaks.
Here’s the checklist I swear by for designing systems:
It’s far easier to spot what’s missing upfront than to scramble midway through development when something critical breaks.
Here’s the checklist I swear by for designing systems:
Senior engineers don’t just write code—they shape the team’s success. 🧵
Senior engineers don’t just write code—they shape the team’s success. 🧵