In my react and typescript app, I use: onChange={(e) => data.motto = (e.target as any).value}.
onChange={(e) => data.motto = (e.target as any).value}
How do I correctly define the typings for the class, s
lucky i find a solution. you can
import { ChangeEvent } from 'react';
and then write code like: e:ChangeEvent
e:ChangeEvent