How to infer the ref type of a component? - Theo's Typesafe Cult