@myinterview/widget-react
v1.1.43
Published
myInterview widget v3
Downloads
2,505
Maintainers
Keywords
Readme
React-Widget
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
Installation and usage
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
[email protected]
,[email protected]
,[email protected]
!
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: "[email protected]", username: "Max" }}
config={{ onFinish, onError,
auth: "apikey xxxxxxxxxxxxxxxxx sig=xxxxxxxxxxxxxxxxxxxxxxxxxx" }}
/>
)
}
Documentation
For more detailed documentation with all Props, Methods and Customisation possibilities, please visit our website https://documentation.myinterview.com/docs/intro
License
MIT Licensed.