Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

useSubmit #62

Open
ysgk opened this issue Dec 20, 2019 · 0 comments
Open

useSubmit #62

ysgk opened this issue Dec 20, 2019 · 0 comments

Comments

@ysgk
Copy link
Collaborator

ysgk commented Dec 20, 2019

const { submit, loading, error } = useSubmit()

return (
  <>
    {loading && <div>Loading...</div>}
    {error && <div>{error.message}</div>}
    <form onSubmit={() => submit()}>
    </form>
  </>
)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant