Best method to capture form data

Hello all, I’m trying to get form submissions with the hubspot script but it not working well. Now, I’m trying to use FORM API to capture form submissions. Please tell me which is better to use the Hubspot XHR request "https://legacydocs.hubspot.com/docs/methods/forms/submit_form" or react hubspot “https://www.npmjs.com/package/react-hubspot-form”. I’ve already putted too much time for capturing form data and not wanted to waste any more time.
Thanks already !

Hey @amydobhal,

Both method would work when looking to capture HubSpot form submission.

Whether to use the Submit data for a form | Forms API or react-hubspot-form - npm, it would largely depends on what’s the framework that your team is comfortable in developing on.

If your team is more comfortable in coding on NodeJS, I’d recommend using the Submit data for a form | Forms API. If your team is more comfortable in coding on react, this would be a better choice - react-hubspot-form - npm.