HomeArticles

TypeScript Docs for Preact.js

Stefan Baumgartner

Written by @ddprrt

More on TypeScript

You might have heard of my React + TypeScript guide, a rather popular section on this blog. I created this while I was learning both technologies, and I still find it handy as a reference. Recently I switched a lot of my work to Preact, as itโ€™s smaller, faster, and features TypeScript types out of the box.

I thought it might be a good idea to have all the TypeScript gotchas explained for Preact as well, thatโ€™s why I rewrote my React + TypeScript guide for Preact. This is an extensive rewrite. Itโ€™s more focussed, it features a lot more examples, and itโ€™s on the official Preact.js documentation! Check it out and let me know what you think!

More articles on TypeScript

Tidy TypeScript: Avoid traditional OOP patterns

Tidy TypeScript: Prefer type aliases over interfaces

Tidy TypeScript: Prefer union types over enums

Stay up to date!

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