Last active
July 17, 2021 16:00
-
-
Save DZuz14/d7d1ed19c2a401ab9bd00eb0f0c0a144 to your computer and use it in GitHub Desktop.
coh3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react' | |
const useForm = (formData) => { | |
const [fields, setFieldsState] = useState(formData.fields) | |
return { fields } | |
} | |
export default useForm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment