How to make extracting components in typescript less cumbersome?
So let's say for example I have a button styling that i'd like to use across most of my app. The recommended tailwind approach is to extract it to a component. However, doing this repeatedly can get quite cumbersome since I have to type every single prop. Is there anyway to infer or automatically create these prop types?
I'm using webstorm and they have a
I'm using webstorm and they have a
extract to react component button, but it will just slap a :any on the props. Has anyone found a way to make the process of doing this more streamlined?
