Recent articles

TypeScript + React: Why I don't use React.FC

Stefan Baumgartner

Written by @ddprrt

Posted in TypeScript, React, Preact

In my recent article on TypeScript and React component patterns I’ve stated that I don’t use the built-in type React.FC<> but rather be explicit with typing children. I didn’t state why, and it sparked some interest. That’s why I want to elaborate a little bit.

Please note that this is just an opinion, not a suggestion or anything else. If you like to use React.FC and it works for you, please continue to do so! That’s totally fine and sometimes I do so as well! And let’s be serious: There are different problems out there that need discussion and are more enough a reason to get angry. So don’t waste your time getting too emotional about code styles. But if you like to get new ideas, please continue!

TypeScript + React: Component patterns

Posted in TypeScript, React, Preact

New Guide: Advanced TypeScript

Posted in TypeScript

TypeScript: Augmenting global and lib.dom.d.ts

Posted in TypeScript

Vite with Preact and TypeScript

Posted in TypeScript, Preact

TypeScript: Union to intersection type

Posted in TypeScript

11ty: Generate Twitter cards automatically

Posted in Eleventy, Jamstack

Are large node module dependencies an issue?

Posted in Node.js, Serverless

Want more? Check out all 144 articles
Coding soundtrack

The Good, The Bad, The Ugly


Bryan Cantrill: A summer of Rust


TypeScript + React

Stay up to date!

3-4 updates per month, spam-free, hand-crafted. Our newsletter gives you links, updates on, conference talks, coding soundtracks, and much more.