import PropTypes from 'prop-types'; import React from 'react'; export default class StringControl extends React.Component { static propTypes = { onChange: PropTypes.func.isRequired, forID: PropTypes.string, value: PropTypes.node, classNameWrapper: PropTypes.string.isRequired, setActiveStyle: PropTypes.func.isRequired, setInactiveStyle: PropTypes.func.isRequired, }; render() { const { forID, value, onChange, classNameWrapper, setActiveStyle, setInactiveStyle } = this.props; return ( onChange(e.target.value)} onFocus={setActiveStyle} onBlur={setInactiveStyle} /> ); } }