react-hubspot

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i react-hubspot

Weekly Downloads

119

Version

1.0.4

License

ISC

Unpacked Size

4.23 kB

Total Files

4

Last publish

Collaborators

  • ads1018