We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
just installed and copied example code
npm install --save-dev antd-form-builder
import React from 'react' import { Form, Button } from 'antd' import FormBuilder from 'antd-form-builder' export default () => { const [form] = FormBuilder.useForm() const meta = { fields: [ { key: 'username', label: 'User Name' }, { key: 'password', label: 'Password', widget: 'password' }, ], } return ( <Form form={form}> <FormBuilder meta={meta} form={form} /> <Form.Item wrapperCol={{ span: 16, offset: 8 }}> <Button type="primary">Login</Button> </Form.Item> </Form> ) }
The text was updated successfully, but these errors were encountered:
@matart15
throw new Error('FormBuilder.useForm is removed. Please use Form.useForm().')
https://github.com/rekit/antd-form-builder/blob/master/src/FormBuilder.js#L143
Sorry, something went wrong.
Oh. I see. Thank you
Looks like Readme have an old code.
Update some types
e0c5d82
Should fix rekit#104
No branches or pull requests
just installed and copied example code
npm install --save-dev antd-form-builder
The text was updated successfully, but these errors were encountered: