TS2739 - Type missing in following properties
问题 So i connect Typescript with hooks. When i try to render Register User in parent component i getting error: interface IRegisterUser { mail: string; password: string; }; let RegisterUser: React.FC<IRegisterUser> = (props) => { const InitialUserState = {mail: "", password: ""} const [user, setUser] = useState(InitialUserState) useEffect(() => { }, []); return ( <div> <input type="text" className="text" name="username" value={user.mail} placeholder="" required/> <input type="text" className=