import React, { PropTypes } from 'react'; export default class StringControl extends React.Component { handleChange = (e) => { this.props.onChange(e.target.value); }; render() { return ; } } StringControl.propTypes = { onChange: PropTypes.func.isRequired, value: PropTypes.node, forID: PropTypes.string, };