Is there a way to store a typescript function with generic arguments in a variable?
function identity<T>(arg: T): T {
return arg;
}
I attempted to do it like this but got an error message saying Cannot find name 'React'
const identity = <T>(arg: T): T => {
return arg;
}