Skip to content

Instantly share code, notes, and snippets.

@pratik-chakravorty
Created July 8, 2018 20:36
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 pratik-chakravorty/73f899ca819b403f6ab598116b9dddfe to your computer and use it in GitHub Desktop.
Save pratik-chakravorty/73f899ca819b403f6ab598116b9dddfe to your computer and use it in GitHub Desktop.
import React, { Component } from "react";
import { Form, Button } from "semantic-ui-react";
const AddItem = props => {
return (
<Form>
<h1>{props.someData}</h1>
<Form.Input
label="Enter Item Name"
type="text"
required={true}
name="item"
placeholder="Item Name"
/>
<Form.Input
label="Enter Amount"
type="number"
required={true}
name="amount"
placeholder="Amount"
/>
<Button primary>Add</Button>
</Form>
);
};
export default AddItem;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment