I want to integrate Veriff SDK into the react js application which has SSR also enabled.
i am getting on just importing the package, rest is behind.
documentation: https://developers.veriff.com/#adding-js-sdk
can someone help me to integrate this veriff component in react js-laravel website ?
import React, { useState, useEffect } from 'react';
import Veriff from '@veriff/js-sdk';
const Verify = () => {
const [message, setMessage] = useState('Hi there, how are you?');
useEffect(() => {
console.log('trigger use effect hook');
setTimeout(() => {
setMessage("I'm fine, thanks for asking.");
}, 1000)
}, []);
return <div id='veriff-root'>{message} </div>
};
export default Verify;