Youtube music and video downloader

Input.jsx 383B

12345678910111213
  1. import React, { PropTypes } from 'react';
  2. const Input = ({ value, change, placeholder }) =>
  3. <input type="text" className="new-link" placeholder={placeholder} autoFocus
  4. value={value} onChange={e => change(e.target.value)} />;
  5. Input.propTypes = {
  6. change: PropTypes.func.isRequired,
  7. value: PropTypes.string.isRequired,
  8. placeholder: PropTypes.string
  9. };
  10. export default Input;