0.1.3 • Published 1 year ago
@formhub/react v0.1.3
@formhub/react
Installation
yarn add @formhub/react
Usage
To obtain the formId, create a form in FormHub, and copy the formId from the URL.
Basic example
import React from 'react';
import Form from '@formhub/react';
const App = () => {
return (
<Form formId="xqVw2L26">
<Form.Input name="firstName" label="First Name" required />
<Form.Input name="lastName" label="Last Name" required />
<Form.Input name="businessEmail" label="Business Email" required />
<Form.Input name="companyName" label="Company Name" required />
<Form.Button>Submit</Form.Submit>
</Form>
);
};
export default App;