AG
Size: a a a
AG
AG
VK
VK
AM
Н
Н
SB
ДН
{
id: 169,
firstName: 'Stuart',
lastName: 'Ramsey',
email: 'TMeng@sit.net',
phone: '(677)376-4827',
address: {
streetAddress: '2658 Orci Dr',
city: 'Barrington',
state: 'ME',
zip: '40895'
},
description: 'eros fringilla convallis dolor fringilla magna at pharetra tortor nec orci vestibulum aenean curabitur magna mattis ante amet aenean massa sed scelerisque tincidunt molestie turpis turpis dolor adipiscing et molestie tortor sed'
}
SB
MK
{
id: 169,
firstName: 'Stuart',
lastName: 'Ramsey',
email: 'TMeng@sit.net',
phone: '(677)376-4827',
address: {
streetAddress: '2658 Orci Dr',
city: 'Barrington',
state: 'ME',
zip: '40895'
},
description: 'eros fringilla convallis dolor fringilla magna at pharetra tortor nec orci vestibulum aenean curabitur magna mattis ante amet aenean massa sed scelerisque tincidunt molestie turpis turpis dolor adipiscing et molestie tortor sed'
}
ДН
ДН
ДН
MK
MK
ДН
ДН
const [newObject, setNewObject] = useState({});
const handleInputChange = (target) => {
const { name, value } = target;
setNewObject(() => {
if (name === "streetAddress") {
return { ...newObject, address: { [name]: value } };
} else {
return { ...newObject, [name]: value };
}
});
};
MK