react-hubspot

A collection of React hooks for interacting with Hubspot APIs

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-hubspot
24101.0.45 years ago6 years agoMinified + gzip package size for react-hubspot in KB

Readme

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>
  )
}