Creating Typed Select/Combobox Components with Downshift and TypeScript Generics
The problem
Have you ever worked in a codebase where you have your select and combobox components take in items, onChange, value and other props only to return a generic string which you had to cast back to whatever value you expect, something like t...
alemtuzlak.hashnode.dev6 min read