@skyhooks/react-use-hubspot

1.0.0 • Public • Published

react-use-hubspot

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @skyhooks/react-use-hubspot

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

6.84 kB

Total Files

9

Last publish

Collaborators

  • gihan.rangana