Last active
July 16, 2021 19:53
-
-
Save DZuz14/ae99d4fa812e2aebbb3244add8036ec7 to your computer and use it in GitHub Desktop.
hook1
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 from 'react' | |
import formData from './form-data.json | |
const FormHook = () => { | |
return <div> | |
{ | |
formData.fields.map(field => | |
<input | |
type={field.type} | |
name={field.name} | |
placeholder={field.placeholder} | |
required={field.required} | |
/> | |
) | |
} | |
</div> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment