Skip to content

Instantly share code, notes, and snippets.

@ablamunits
Last active June 17, 2020 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ablamunits/df864f0af2f0678c79e865014bc2ff87 to your computer and use it in GitHub Desktop.
Save ablamunits/df864f0af2f0678c79e865014bc2ff87 to your computer and use it in GitHub Desktop.
Value & onChange Post - l
// An InputWithLabels component used in a ShoppingForm
function ShoppingForm() {
const [shoppingItems] = useState(['Apples', 'Cookies']);
return (
<InputWithLabels
value={shoppingItems}
/>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment