aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Input.js
blob: c74d595d0378c98dc8bf38eacc7819b551ed44c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from 'react';
import PropTypes from 'prop-types';

import './Input.css';

function Input({ name, value, ...rest }) {
    return (
        <input className="input" name={name} value={value} {...rest} />
    );
}

Input.propTypes = {
    name: PropTypes.string.isRequired,
    value: PropTypes.string.isRequired
};

export default React.memo(Input);