I tried to use " https://formbuilder.online/ " but got this error:
addForm.jsx:10Uncaught TypeError: $(...).formBuilder is not a function
jQuery invaded component:
export default class AddForm extends Component {
constructor(props) {
super(props)
}
componentDidMount(){
console.log('helo');
$(".formBuilder").formBuilder();
}
render(){
return(<div className="formBuilder"></div>)
}
}
Looks a bit like you are including formBuilder after calling it. Are you sure the order is correct ?
class CustomForm extends Component {
fb = createRef();
componentDidMount() {
$(this.fb.current).formBuilder();
}
render() {
return <div id="fb-editor" ref={this.fb} />;
}
}
export default CustomForm
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.