React bindings for the Persona Inquiry Flow JavaScript SDK.
The official React bindings for the Persona Inquiry JavaScript SDK.
- Persona Inquiry React SDK
- Documentation
- Getting Started
- Contributing
- License
The module provides React bindings for the Persona embedded flow.
- React integration documentation.
- Vue integration documentation.
- Changelog.
``bash`
npm install persona-react
To open the flow you must create a Client object.
`javascript
import React from 'react';
import PersonaReact from 'persona-react';
const MyComponent = () => {
return (
templateId='itmpl_Ygs16MKTkA6obnF8C3Rb17dm'
environment='sandbox'
onComplete={({ inquiryId, status, fields }) => console.log('onComplete')}
onCancel={({ inquiryId, sessionToken }) => console.log('onCancel')}
onError={(error) => console.log(error)}
/>
);
};
``
Please see Contributing for guidelines and instructions for local development.