Skip to content

skyhooks/react-use-hubspot

Repository files navigation

react-use-hubspot

npm version install size npm bundle size

HubSpot integration for react.

Usage

click here to see example for more details

function App() {

  const hubSpot = useHubSpot({
    portalId: import.meta.env.VITE_HS_PORTAL_ID,
    formId: import.meta.env.VITE_HS_FORM_ID,
  })

  return (
    <>
      <div>
        <hubSpot.element
          loader={<h2>Load...</h2>}
        />
      </div>
    </>
  )
}

Available options

All options are available based on the hubSpot configuration, Click here to see what options are available

For more details

License

Copyright © 2023 Gihan Rangana(under the skyhooks org) Released under the MIT license.