diff --git a/dapps-builder/src/components/UIComponents/Form.js b/dapps-builder/src/components/UIComponents/Form.js new file mode 100644 index 000000000..19ae49b1f --- /dev/null +++ b/dapps-builder/src/components/UIComponents/Form.js @@ -0,0 +1,25 @@ +import React, { useState } from 'react'; + +const Form = ({ onSubmit }) => { + const [input, setInput] = useState(''); + + const handleSubmit = (e) => { + e.preventDefault(); + onSubmit(input); + setInput(''); + }; + + return ( +
+ ); +}; + +export default Form;