© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Philip Davis
Software developer
I rarely validate the structure of my props. But when I do, I use TypeScript.
export type Params = { foo: string; bar?: number; }; export const Widget = ({ foo, bar = 42 }: Params) => <div className={ foo }>{ bar }</div> ;