All Projects → aaronhayes → react-use-hubspot-form

aaronhayes / react-use-hubspot-form

Licence: MIT license
Embed HubSpot forms into your React components using hooks! Works with Create React App, Gatsby and other platforms.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-use-hubspot-form

react-hubspot
A collection of React hooks for interacting with Hubspot APIs
Stars: ✭ 20 (-51.22%)
Mutual labels:  form, hubspot, hubspot-form, react-hooks
react-remark
React component and hook to use remark to render markdown
Stars: ✭ 81 (+97.56%)
Mutual labels:  react-components, react-hooks
furl
Functional react.js components.
Stars: ✭ 33 (-19.51%)
Mutual labels:  react-components, react-hooks
MERN-BUS-APP
This is a MFRP (My first Real Project) assigned to me during my internship at Cognizant. Made with MERN Stack technology.
Stars: ✭ 92 (+124.39%)
Mutual labels:  react-components, react-hooks
fluent-windows
🌈 React components that inspired by Microsoft's Fluent Design System.
Stars: ✭ 122 (+197.56%)
Mutual labels:  react-components, react-hooks
react-guidebook
📚 React 知识图谱 关于概念、技巧、生态、前沿、源码核心
Stars: ✭ 22 (-46.34%)
Mutual labels:  react-components, react-hooks
react-native-value-picker
Cross-Platform iOS(ish) style picker for react native.
Stars: ✭ 18 (-56.1%)
Mutual labels:  react-components, react-hooks
mint-ui
Design System | React UI components for web
Stars: ✭ 17 (-58.54%)
Mutual labels:  react-components, react-hooks
react-admin-nest
React和Ant Design和 Nest.js 和 Mysql 构建的后台通用管理系统。持续更新。
Stars: ✭ 123 (+200%)
Mutual labels:  react-components, react-hooks
how-react-hooks-work
Understand how React-hook really behaves, once and for all!
Stars: ✭ 73 (+78.05%)
Mutual labels:  react-components, react-hooks
Beautiful React Hooks
🔥 A collection of beautiful and (hopefully) useful React hooks to speed-up your components and hooks development 🔥
Stars: ✭ 5,242 (+12685.37%)
Mutual labels:  react-components, react-hooks
Nectus
A boilerplate Flask API for a Fullstack Project with some additional packages and configuration prebuilt. ⚙
Stars: ✭ 32 (-21.95%)
Mutual labels:  react-components, react-hooks
tiny-ui
⚛️ A friendly UI component set for React.js
Stars: ✭ 202 (+392.68%)
Mutual labels:  react-components, react-hooks
book-fullstack-react
Fullstack React: The Complete Guide to ReactJS and Friends by Anthony Accomazzo
Stars: ✭ 100 (+143.9%)
Mutual labels:  react-components, react-hooks
hx
A simple, easy to use library for React development in ClojureScript.
Stars: ✭ 244 (+495.12%)
Mutual labels:  react-components, react-hooks
react-sample-projects
The goal of this project is to provide a set of simple samples, providing and step by step guide to start working with React.
Stars: ✭ 30 (-26.83%)
Mutual labels:  react-components, react-hooks
awesome-web-react
🚀 Awesome Web Based React 🚀 Develop online with React!
Stars: ✭ 31 (-24.39%)
Mutual labels:  react-components, react-hooks
frontend-toolbox
Frontend tools which we used in snappmarket v2
Stars: ✭ 37 (-9.76%)
Mutual labels:  react-components, react-hooks
best-of-react
🏆 A ranked list of awesome React open-source libraries and tools. Updated weekly.
Stars: ✭ 364 (+787.8%)
Mutual labels:  react-components, gatsbyjs
MetFlix
A Movie app demo. Like NetFlix ❤️
Stars: ✭ 50 (+21.95%)
Mutual labels:  react-components, react-hooks

React Use HubSpot Form Embed

npm (scoped) Bundle Size License

Embed HubSpot forms into your React components using hooks! Works with Create React App, Gatsby and other platforms.

Install

$ npm install --save @aaronhayes/react-use-hubspot-form
$ yarn add @aaronhayes/react-use-hubspot-form

Getting Started

Wrap your application with HubspotProvider. This will add Hubspot script to the head of your document.

import React from 'react';

import { HubspotProvider } from '@aaronhayes/react-use-hubspot-form';

const MyApp = () => (
    <HubspotProvider>
        <MyPage />
    </HubspotProvider>
)

Usage

import React from 'react';

import { useHubspotForm } from '@aaronhayes/react-use-hubspot-form';

const MyPage = () => {
    const { loaded, error, formCreated } = useHubspotForm({
        portalId: 'XXXXXXX',
        formId: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
        target: '#my-hubspot-form'
    });

    return (
        <div>
            <h1>Embed Form Below</h1>
            <div id="my-hubspot-form"></div>
        </div>
    )
}

Breaking Changes

2.0.0

  • Introduction of the HubspotProvider component. This needs to be included in your App for useHubspotForm to work.

Support

If you feel like sending some sats to [email protected] my Lightning Address it would be much appreciated.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].