import React from 'react'; import PropTypes from 'prop-types'; import './Input.css'; function Input({ name, value, ...rest }) { return ( ); } Input.propTypes = { name: PropTypes.string.isRequired, value: PropTypes.string.isRequired }; export default React.memo(Input);