npm.io
1.0.4 • Published 7 years ago

react-hubspot

Licence
ISC
Version
1.0.4
Deps
2
Size
4 kB
Vulns
24
Weekly
0
Stars
24

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

Keywords