javascriptreactjstypescriptformsformbuilder

formBuilder is not a function


Description:

Here is the code:

 useEffect(() => {
if (fb.current) {
  setTimeout(() => {
    setFormBuilder(
      $('#form-builder-area').formBuilder({
        ...options,
        fields,
      })
    );
  }, 5000);
}

}, [fields, options]);

Steps to Reproduce

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.


Solution

  • Got a solution from the authors. Posting a link here!!! https://github.com/kevinchappell/formBuilder/issues/1509#issuecomment-1952435414