Use this const [user, setUser] = useState<IUser>({name: 'Jon'});. See the Corresponding Type in DefinitelyTyped.
確定! 回上一頁