How to write this typescript function with generic arguments in a variable function(store the function in a variable)?
function identity<T>(arg: T): T {
return arg;
}
I tried this and it complains Cannot find name 'React'
const identity = <T>(arg: T): T => {
return arg;
}