As usual it builds but I haven't tested, though it should work 😸 I've tried to simplify the types, just by using ReactElementType in the generic version when there are typed props (I've also removed the interfaces when they were not necessary) and the untyped version when there is no props declaration (like for MenuOptions).
As usual it builds but I haven't tested, though it should work 😸 I've tried to simplify the types, just by using
ReactElementType
in the generic version when there are typed props (I've also removed the interfaces when they were not necessary) and the untyped version when there is no props declaration (like forMenuOptions
).