Skip to content

A collection of React hooks for interacting with Hubspot APIs

Notifications You must be signed in to change notification settings

adamsoffer/react-hubspot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Hubspot Build Status

A collection of React hooks for interacting with Hubspot APIs

Installation

npm install --save react-hubspot

Usage

import { useForm } from 'react-hubspot'

export default () => {
  const { data, isLoading, isError, handleSubmit } = useForm({
    portalId: '<PORTAL_ID>',
    formId: '<FORM_ID>'
  })

  return (
    <form onSubmit={handleSubmit}>
      <input name="email" type="text" placeholder="email" />
    </form>
  )
}

Releases

No releases published

Packages

No packages published