Example Code: Inline Form with React
Steps
- Install the library into your project
npm install @typeform/embed-react --save
- Import selected components into the app
import { Widget } from '@typeform/embed-react';
- Render the component and apply configurations with properties
const InlineForm = (props) => {
return (
<Widget
id='LQTzMYOw'
hidden={{
name: {props.name},
email: {props.email},
user_id: {props.id}
}}
height='400px'
width='400px'
/>
);
}