11
Typescript input onchange event.target.value
Benim tepki ve daktilo uygulamasında, ben kullanın: onChange={(e) => data.motto = (e.target as any).value}. Sınıf için yazımları nasıl doğru bir şekilde tanımlarım, böylelikle yazım sisteminde yolumu kesmek zorunda kalmazdım any? export interface InputProps extends React.HTMLProps<Input> { ... } export class Input extends React.Component<InputProps, {}> { } Eğer koyarsam target: { …