Integrate Surface Forms with React.js to embed forms in your React.js application.
public/index.html
file in your React.js project and add the following code at the end of <body>
tag:your_form_url
with the form sharing link you copied in step 1.surface_embed_type
with "popup"
if you want to show the form as a popup or "inline"
if you want to show the form inline.target_element_class
with "surface-form-button"
if you want to show the form as a popup or "surface-form-target"
if you want to show the form inline.popupSize
with "small"
, "medium"
, or "large"
if you want to set the size of the popup form.surface-form-button
class to the HTML element if you want to show the form as a popup or surface-form-target
class to the target element if you want to show the form inline.