typescript-tips

sulco Tomek Sułkowski (@sulco) - August 12, 2019 at 8:28 PM

#React #Typescript tip for today:

You don’t have to export component’s prop type/interface - when you need it you can extract it from a component using the handy ComponentProps generic. pic.twitter.com/pGPECfibkL

Tweet link