aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Input.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/Input.js')
-rw-r--r--vnext/src/components/Input.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/vnext/src/components/Input.js b/vnext/src/components/Input.js
index 5c150ec3..c74d595d 100644
--- a/vnext/src/components/Input.js
+++ b/vnext/src/components/Input.js
@@ -1,9 +1,17 @@
import React from 'react';
+import PropTypes from 'prop-types';
import './Input.css';
function Input({ name, value, ...rest }) {
- return(<input class="input" name={name} value={value} {...rest} />)
+ return (
+ <input className="input" name={name} value={value} {...rest} />
+ );
}
-export default React.memo(Input); \ No newline at end of file
+Input.propTypes = {
+ name: PropTypes.string.isRequired,
+ value: PropTypes.string.isRequired
+};
+
+export default React.memo(Input);