Daniel
prisis.bsky.social
Daniel
@prisis.bsky.social
Constantly exploring new technologies and frameworks to create better developer experiences. Let's connect and build something amazing together! 🚀

TypeScript 🌎 Web ⚛️ Open Source Software💡UI/UX/DX
TypeScript enums have surprising gotchas that many experts avoid.
Unlike most TS features, enums generate runtime code and aren't erased during compilation. They can't be used as type constraints and cause bundle bloat.
March 26, 2025 at 11:00 AM
TypeScript introduced private class fields before JavaScript did. Its initial private keyword was later replaced by JavaScript's standard # syntax for private fields.
March 25, 2025 at 4:00 PM
Template literal types let you create powerful string manipulation at the type level:
March 25, 2025 at 11:00 AM
You can make TypeScript's type system Turing complete with recursive conditional types.
This means the type system itself can compute any algorithm... though you probably shouldn't 😅
March 24, 2025 at 4:00 PM
TypeScript has built-in utility types for manipulating other types, but many devs reinvent them.

Instead of writing your own, use these standard ones:
March 24, 2025 at 11:00 AM
Use type guards to ensure type safety in render methods:
March 23, 2025 at 6:57 PM
Make component refs type-safe:
March 23, 2025 at 6:57 PM
Type React event handlers properly:
March 23, 2025 at 6:57 PM
Use type extraction for component props to keep your code DRY:
March 23, 2025 at 6:57 PM
Leverage React.FC when you need access to children, defaultProps and contextTypes types:
March 23, 2025 at 6:57 PM
Use discriminated unions for component states:
March 23, 2025 at 6:57 PM
Kick off with precise component prop typing:
March 23, 2025 at 6:57 PM