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
One common pattern in this repo is having a form inside a modal.
Something vaguely like this to give an idea of what I mean:
function FormModal(props) { // todo flesh out these props const [formData, setFormData] = useState(props.initialFormData); const onValuesChange = (newData) => setFormData({...formData, ...newData}); return ( <Modal ...props, onOk={() => props.handleOk(formData)} > <Form onValuesChange={onValuesChange} initialValues={props.initialFormData} { props.formContents} </Form> </Modal> ) }
This can help reduce some of the boilerplate involved in setting up form modals
The text was updated successfully, but these errors were encountered:
cory2067
No branches or pull requests
One common pattern in this repo is having a form inside a modal.
Something vaguely like this to give an idea of what I mean:
This can help reduce some of the boilerplate involved in setting up form modals
The text was updated successfully, but these errors were encountered: