Słownik maszynopisowy zwykle
interface IUser {
name: string;
}
...
const [user, setUser] = useState({name: 'Jon'});
Defiant Dove
interface IUser {
name: string;
}
...
const [user, setUser] = useState({name: 'Jon'});