From 779aacce8c9d2f46f17de0587740f26e49c65522 Mon Sep 17 00:00:00 2001 From: Aleph Goldstein Date: Wed, 3 Jul 2024 14:00:00 -0300 Subject: [PATCH] changes 03/07 1 --- src/App.js | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index fab5f17..bf7b9e9 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,6 @@ -import MostraNome from "./components/MostraNome" import { useState } from "react"; +/* +import MostraNome from "./components/MostraNome" function App() { const [pessoa, setPessoa] = useState("Professor de TI") function handleChangeName(nome){ @@ -25,4 +26,26 @@ function App() { } export default App; - +*/ +function MeuForms(){ +const[nome,setNome] = useState(" "); +const handleChange = (event) => { + setNome(event.target.value) +}; +const handleSubmit = (event) => { + event.preventDefault(); + alert(`Olá ${nome}`) +} +return( +
+
+ + +
+
+) +} +export default MeuForms;