I'm just starting out with Typescript/React and i'm trying to understand what this all means. I come from a C# background so this is a bit new to me. I've gone through a few tutorials but I'm still a little confused on the syntax of this.
For starters, what does this line even mean?...
type OnUserClick = (u: UserTat) => any
And this interface... the onClick function is defined as () => OnUserClick rather than OnUserClick... why is this?
interface IBProps {
user: UserTat
onClick: () => OnUserClick
}