Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表格,可以用数据做两件事。我记得在 redux-form 中可以提供一个handleSubmit这样的函数:handleSubmit(customOnSubmit). react-final-form 的替代方案是什么?
handleSubmit
handleSubmit(customOnSubmit)
你只需将它传递给onSubmit道具。
onSubmit
<Form onSubmit={customOnSubmit}> { ({ handleSubmit }) => <form onSubmit={handleSubmit}> ...fields here... </form> } </Form>