dojah-kyc-sdk-react component. You design the flow once in EasyOnboard, then render it by passing your keys and widget type.
Which SDK? This is the widget SDK — it renders Dojah’s UI. To call endpoints directly from your server, use an API client instead. Not sure? See Choosing an SDK.
Requirements
- React 19 or later (declared as a peer dependency).
- An App ID and public key from your dashboard.
- A published widget (EasyOnboard flow) whose
widget_idyou’ll pass in.
Install
Add the package with npm or yarn:Terminal
Initialize
Import the component and render it with your credentials and aresponse handler. Passing all of userData auto-skips the user-data screen.
App.jsx
Props
Handling the response
Theresponse callback fires with a type string as the user moves through the flow:
Theming & branding
Colors, logo, and which steps appear are configured on the flow itself in EasyOnboard, not in code — the component just renders the publishedwidget_id. To restyle the flow, edit it in the dashboard and republish; no app changes needed.
Note. Switch
appID and publicKey to your live keys before shipping to production — sandbox keys won’t bill or return real data.Resources
- GitHub — dojah-inc/React-Js-sdk
- npm — dojah-kyc-sdk-react
- Choosing an SDK · Hosted flows (EasyOnboard)