Has anyone ever used generic types with react comp...
# javascript
m
Has anyone ever used generic types with react components? e.g. external interface MySelectListProps<T>: Props { var options: List<T> var onSelected: (T) -> Unit, } Is there any established pattern, or is this a bad idea?
t
Small pill will be required. Example