Documentation
Quick start
React app

React app

Learn how to add CustomGForm to the React app

Install

pnpm i @customgform-lib/react-customgform

Add to your React component

// ts
import React from 'react';
import CustomGForm from '@customgform-lib/react-customgform';
 
function Example() {
  return <CustomGForm 
    formId="clj5flan90005wnju2yq4k38b"
    prefillFields={{
      '325391704': 'John',
      '1801257527': '[email protected]',
    }}
  />;
}
OptionTypeDescription
formIdstringCustomGForm Form ID
prefillFieldsobject(optional) list of fields to prefill, e.g {"1801257527": "[email protected]"}
💡

Replace FORM_ID to your customized CustomGForm form ID.