2018-04-21 01:47:30 +03:00

26 lines
393 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import Label from './Label';
import Input from './Input';
function Row({ label, input }) {
return (
<div>
{label}
{input}
</div>
);
}
Row.propTypes = {
label: PropTypes.instanceOf(Label),
input: PropTypes.instanceOf(Input).isRequired,
};
Row.defaultProps = {
label: null,
};
export default Row;