From f470636a70943a8ecad8bddc791a1c2dddd28e1e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 4 May 2019 21:13:12 +0300 Subject: Components -> UI --- vnext/src/ui/Input.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vnext/src/ui/Input.js (limited to 'vnext/src/ui/Input.js') diff --git a/vnext/src/ui/Input.js b/vnext/src/ui/Input.js new file mode 100644 index 00000000..c74d595d --- /dev/null +++ b/vnext/src/ui/Input.js @@ -0,0 +1,17 @@ +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); -- cgit v1.2.3