Join Slack
Powered by
Has anyone ever used generic types with react comp...
# javascript
m
Mike Dawson
11/30/2022, 7:10 PM
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
turansky
11/30/2022, 8:05 PM
Small pill will be required.
Example
23
Views
Open in Slack
Previous
Next