How to build a REACT FORM to post an object like this at once to the backend server?
{
accountDetail: {
accountStatus: "",
referralCode: "",
signUpRemarks: "",
adminRemarks: "",
accountStatusRemarks: ""
},
address: {
latLong: {
latitude: 0,
longitude: 0
},
locality: {
city: {
district: {
id: 55,
state: {
id: ""
}
},
id: 1683
},
id: 9
},
street: ""
},
businessDetail: {
businessName: "",
gstRegistered: true,
gstin: ""
},
}
PLEASE HELP