let form = document.forms.namedItem('creditCalc');
let sum = form.creditSum.value;
let term = form.creditTerm.value;
let termType = form.creditTermType.value;
let date = new Date(form.creditDate.value);
let rateType = form.creditRateType.value;
let rate = form.creditRate.value;
let ratePerType = form.creditRatePerType.value;
let paymentType = form.creditPaymentType.value;
let props4 = {
timestamp: 1580223258,
message: "success",
iss_position: {
name: 'Nicko',
age: 23,
city: "Colorado"
}
};
const Header = (props) => {
console.log(props); // Здесь отдал весь props
const { iss_position } = props;
console.log(iss_position); // Здесь отдал только объект iss_position
return (
<Container>
<HeaderWrapper>
<Left>
</Left>
<Center>
</Center>
<Right>
</Right>
</HeaderWrapper>
</Container>
);
};