Javascript – Typescript React component infer one prop from another
I could use some help defining the type for my element's Props, as I'm convinced that what I'm trying to achieve is possible, but I just cannot get it to work. In my TS app I have a component, that…