Created
July 15, 2021 16:53
-
-
Save DZuz14/f49ef06ef71dd989585f6a0f0c259d6f to your computer and use it in GitHub Desktop.
hook2
This file contains hidden or 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, useEffect } from 'react' | |
// form will be the JSON file | |
const FormHook = (form) => { | |
const [formData, setFormData] = useState(form) | |
// | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment