typescript onclick react Описание типа
Primary tabs
Можно так:
import React from 'react'; interface LinkProps { text: string; htmlTitle?: string; onClick: React.MouseEventHandler<HTMLButtonElement>; }
- Log in to post comments
- 922 reads
Можно так:
import React from 'react'; interface LinkProps { text: string; htmlTitle?: string; onClick: React.MouseEventHandler<HTMLButtonElement>; }