hanse dent retweeted
Const objects are better than enums in TypeScript.
First, they're real JS syntax, and I generally like to use only the type features of TypeScript.
Second, they can be composed and decomposed in a type-safe way, so you can build "enums" from other "enums"...
Here's an example:
hanse dent retweeted
we published react-three-flex today github.com/react-spring/reac… 🎉 react-natives flexbox impl (yoga) for threejs. allows frontend devs to bring their knowledge over, make things that wouldn't be possible w/ the dom and that kind of perf (check out @AWWWARDS for inspiration) 1/4 ...
hanse dent retweeted
Year 2026, GitHub has blended Git with "GitHub CLI", creating essentially a variant of Git. Most developers only use GitHub CLI, and the maintainers of Git have abandoned it. Developers say the primary reason why they migrated is because `gh` is shorter to type than `git`.
hanse dent retweeted
Introducing Rome: A linter for JavaScript and TypeScript. The first in a suite of tools for frontend languages that includes bundling, compiling, testing, and more. romefrontend.dev/blog/2020/0…
hanse dent retweeted
📰🚀 Capsize v1 Release 🚀📰
Finally published Capsize v1 to npm
📐 Control the size of text by the height of the capital letters
✂️ Predictable text layout by trimming white space around text nodes
🛠 Generate your typographic hierarchy easily, iterating over design tokens
hanse dent retweeted
I think CSS-in-JS is about to enter a new level 🚀.
🔸 Lots of new tools built by amazing people
🔸 CSS-in-JS style editing in Google Chrome
🔸 Tools to trim browser whitespace in fonts and typefaces
These tools will converge at some point. We're almost there and I'm excited!
hanse dent retweeted
🔥 Capsize is a *massive* leap forward for web typography.
✂️ It uses font metadata to crop space from text nodes above capital letters and below the baseline.
🔍 It adjusts font-size so that the height of capital letters is a multiple of your grid.
👉 seek-oss.github.io/capsize
hanse dent retweeted
I published my first blog post today. It's about when to and when not to useMemo and useCallback.
Originally posted it internally at FB in September, but I was encouraged to share it publicly, so enjoy! royi-codes.now.sh/thousand-u…
hanse dent retweeted
I feel pretty confident in my testing abilities, but this article by @kentcdodds taught me a few tricks I didn’t yet know. If you’re using testing-library to write your tests, I’d definitely invest 5 minutes of my time to feel smarter.
kentcdodds.com/blog/common-m… – at Tvedestrand, Norge
hanse dent retweeted
Hot off the presses -- an announcement about @reactotron and Flipper! I'm super excited about this collaboration.
"Better React Native Debugging with Reactotron in Flipper"
Debugging #reactnative just got a bit better.
⭐️ shift.infinite.red/better-re… ⭐️
hanse dent retweeted
Having trouble with code quality? Write a lot of tests. And I mean a *lot*. Test every file in isolation. Mock as many imports as possible.
When you're done, your code will still be bad, but now your tests will make sure it's impossible to improve anything in any meaningful way.
hanse dent retweeted
We should ban margin from our components. No more margin, anywhere in our apps.
Hear me out.
mxstbr.com/thoughts/margin
hanse dent retweeted
Holy crap! It's finally happening: My book Production Ready #GraphQL is now available for everyone 💫 👇
book.productionreadygraphql.…
hanse dent retweeted
Why explicit hook-based APIs:
const toolbar = useToolbarState()
<Toolbar {...toolbar}>
<ToolbarItem {...toolbar} />
</Toolbar>
are better than implicit context-based APIs:
<Toolbar> // Provider
<ToolbarItem /> // Consumer
</Toolbar>
(and why they’re not)
A thread 👇
hanse dent retweeted
I love how the future of @reactnative is 'yarn add some-rn-module' and off you go. E.g. new @rnfirebase docs are much smaller now; RN's new auto-linking + efforts in our code base to remove manual native integration steps makes for super fast adoption of RN libs 😍 dx is up up ⏫
hanse dent retweeted
Introducing: This Week In React ⚛️
Weekly coverage of interesting pull requests, discussion, and RFCs around React Core and React DOM. Every Friday.
The first issue is out today! Right here (thread) ➡️
hanse dent retweeted
Q: What's one good way to build a mobile app used by 800 million people?
A: React Native facebook.github.io/react-nat…

























