Here is the code:
useEffect(() => {
if (fb.current) {
setTimeout(() => {
setFormBuilder(
$('#form-builder-area').formBuilder({
...options,
fields,
})
);
}, 5000);
}
}, [fields, options]);
Uncaught TypeError: $(...).formBuilder is not a function
This error pops up and also it crashes the application if I do not use .ready method of jQuery or do not put it in setTimeout.
Here are the resources you might need to look into this issue:
I have mentioned the actual and the expected behaviour in the description itself.
Got a solution from the authors. Posting a link here!!! https://github.com/kevinchappell/formBuilder/issues/1509#issuecomment-1952435414