final-form / final-form/react-final-form

[Suggestion] provide similar hook API to Formik and use-form

Open
#814 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### Are you submitting a **bug report** or a **feature request**?

Currently the only way to use react-final-form is inside a render component - this makes it painfully non-react to do certain things like passing control of the submit or form state outside (to the parent) of the render component.

Can react-final-form provide a `useForm()` hook similar to how Formik and use-form pkg's offer the ability to simply create a "form state" from the hook call without a wrapping component or context provider?

I love react-final-form and use it in all my react and react-native projects but it's lacking in this specific area.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.