How to Type React DefaultProps Situation/Background We have inherited an old complex class-based component that took an array of items and rendered them.It had a similar structure to this: export interface ListProps { items: string[]; filterPredicate?: (item: string) => boolean; onSelect?: (item: string) => void; onMultiSelect?: (items: string[]) => void; createKey?: (item: string, index: number)…

Read More