import React from 'react';

export default function(props) {
  return (
    <label>
      {props.text}
      <input
        className={props.name}
        type="text"
        placeholder={props.placeholder}
        onChange={props.onchange.bind(null, props.name)}
        value={props.value}
      />
    </label>
  );
}
