question about specifying events in typescript

In this example, why is the element type of the FormEvent specified with this syntax like FormEvent<HTMLFormElement> is this just how it was designed that when you specify the form element of a form event, you place the element type in <> to the right of the event type?
3 Replies
Ryan
RyanOP2y ago
or does this feed into / is consistent with some larger syntax pattern in js/ts/react that I'm not seeing/understanding
Ryan
RyanOP2y ago
thanks, i think i figured it out from that
Want results from more Discord servers?
Add your server