Closed hidaytrahman closed 1 year ago
I haven't tested it with React 18 as of now.
But what I have Googled so far I think the issue lies somewhere else. Try installing these two npm and let me know if this resolves your issue:
npm install assert --save
npm install buffer --save
Thank you @masroorejaz. Is there any plan to remove these dependencies
Closing this with the implementation of React 18 (hooks)
import {
loadCaptchaEnginge,
LoadCanvasTemplate,
LoadCanvasTemplateNoReload,
validateCaptcha,
} from "react-simple-captcha";
loadCaptchaEnginge(6)
(You can change 6 to the number of captcha characters you want) in useEffect()
useEffect(() => {
loadCaptchaEnginge(6);
}, []);
Thank you @masroorejaz. Is there any plan to remove these dependencies
You are most welcome. Will see in the future.
Tried to load both parser.