The myInterview widget for React.
For more detailed documentation with all Props, Methods and Customisation possibilities, please visit our website https://documentation.myinterview.com/docs/intro
The easiest way to use react-widget is to install it from npm and build it into your app with Webpack / rollup / parcel.
react-widget compatible with react version
react@16.x.x
,react@17.x.x
,react@18.x.x
!
yarn add @myinterview/widget-react
# or use npm
npm install @myinterview/widget-react
Then use it in your app:
import React from 'react';
import { Widget } from '@myinterview/widget-react';
const App = () => {
const onFinish = () => {
//...
}
const onError = () => {
// ...
}
return (
// ...
<Widget
job={{ job_id: "xxxxxxxxxxxxxxxxxx" }}
candidate={{ email: "test@mail.com", username: "Max" }}
config={{ onFinish, onError,
auth: "apikey xxxxxxxxxxxxxxxxx sig=xxxxxxxxxxxxxxxxxxxxxxxxxx" }}
/>
)
}
For more detailed documentation with all Props, Methods and Customisation possibilities, please visit our website https://documentation.myinterview.com/docs/intro
MIT Licensed.