Russell
russellmd.bsky.social
Russell
@russellmd.bsky.social
Building web apps with React ⚛️ and dotnet 🌐

Hacking with rust by night 🦀
Reposted by Russell
🧑‍🎄 Node.js now supports TypeScript by default 🤯 🎄
December 26, 2024 at 6:55 PM
Reposted by Russell
Don't be good at React.
Be good at JavaScript.

Don't be good at Tailwind.
Be good at CSS.

🙏

#css #javascript
November 24, 2024 at 11:07 AM
Reposted by Russell
📚 Had to post this a lot on the other platform lately and apparently, it blows people's mind that this is possible. I wrote it over 2 years ago, and callback refs will only get better in v19 because they will get cleanup functions. Have a read:

tkdodo.eu/blog/avoidin...
Avoiding useEffect with callback refs
Interacting with DOM nodes doesn't necessarily need useEffect
tkdodo.eu
November 22, 2024 at 8:05 AM
Reposted by Russell
if (x != null) has to be my favorite value check.
Use that loose equality for some good.
November 15, 2024 at 11:33 AM
Reposted by Russell
how to fix 80% of bugs

1. find unnecessary accumulating state
2. derive it from existing stuff on the fly
November 8, 2024 at 2:39 AM