6.0.0 • Published 4 months ago

persona-react v6.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Persona Inquiry React SDK

The official React bindings for the Persona Inquiry JavaScript SDK.

Demo

Table of Contents

Documentation

The module provides React bindings for the Persona embedded flow.

Getting Started

npm install persona-react

To open the flow you must create a Client object.

import React from 'react';
import PersonaReact from 'persona-react';

const MyComponent = () => {
  return (
    <PersonaReact
      // This refers to a production demo template owned by Persona
      templateId='itmpl_Ygs16MKTkA6obnF8C3Rb17dm'
      environment='sandbox'
      onComplete={({ inquiryId, status, fields }) => console.log('onComplete')}
      onCancel={({ inquiryId, sessionToken }) => console.log('onCancel')}
      onError={(error) => console.log(error)}
    />
  );
};

Contributing

Please see Contributing for guidelines and instructions for local development.

License

MIT

5.1.3

6 months ago

6.0.0

4 months ago

5.1.1

9 months ago

5.1.0

1 year ago

5.0.0

1 year ago

5.0.0-alpha.3

1 year ago

5.0.0-alpha.2

1 year ago

5.0.0-alpha.0

1 year ago