1.3.8 • Published 6 years ago
withloveinternet-react-hubspot-form v1.3.8
react-hubspot-form
A React component to render HubSpot forms.
Installation
With npm:
npm install --save react-hubspot-formOr with Yarn:
yarn add react-hubspot-formUsage
import HubspotForm from 'react-hubspot-form'
...
<HubspotForm
   portalId='your_portal_id'
   formId='your_form_id'
   onSubmit={() => console.log('Submit!')}
   onReady={(form) => console.log('Form ready!')}
   loading={<div>Loading...</div>}
   />Options
You can also set any additional options that HubSpot provides as properties in the component.
1.3.8
6 years ago