My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to build a REACT FORM to post an object like this at once to the backend server?

Subho Karmakar's photo
Subho Karmakar
·Dec 10, 2019
{
  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