Skip to main content
CJ
  • Articles
  • Projects
  • Contact

TypeScript

1 article in TypeScript.

Stop Using Optional Props: Why Discriminated Unions Make Better React ComponentsStop Using Optional Props: Why Discriminated Unions Make Better React Components
August 23, 2023

Stop Using Optional Props: Why Discriminated Unions Make Better React Components

Optional props feel flexible until they ship a runtime error to production that TypeScript should have caught at compile time. Here is the pattern I now use in every component.

ReactRead more →

Clint Johnson

I build stuff for healthcare companies. Sometimes it works, sometimes I learn something. Always caffeinated, usually in Nashville.

Site

  • Articles
  • Projects
  • Contact
  • RSS

Connect

  • 1Put Health

    Healthcare innovation studio

    View

© 2026 Clint Johnson. All rights reserved.