Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import React from 'react';
import Input from './Input.js';
const InputGroup = props => (
<div>
{props.inputHasLabel &&
<label
htmlFor={props.inputName}
className="label"
>
{props.inputLabel}
</label>
}
<p className="control">
<Input
inputName={props.inputName}
inputType={props.inputType}
inputClasses={props.inputClasses}
inputChange={props.inputChange}
/>
</p>
</div>
);
export default InputGroup;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment