Entrega do Desafio #2

Merged
anacarolinaduartecavalcante merged 81 commits from develop into main 2023-01-14 14:05:45 +00:00
Showing only changes of commit ca1d07f561 - Show all commits

View File

@ -1,6 +1,8 @@
import styles from "./Footer.module.scss";
import React from "react";
const Newsletter = () => {
const [result, setResult] = React.useState('');
return (
<div className={styles["Newsletter__Content"]}>
<div className={styles["Newsletter__Content__Block"]}>
@ -8,8 +10,8 @@ const Newsletter = () => {
Assine nossa Newsletter
</h3>
<div className={styles["Newsletter__Content__Block__Register"]}>
<input type="text" placeholder="E-mail" />
<button>Enviar</button>
<input type="text" placeholder="E-mail" onChange={(e) => setResult(e.target.value)} value={result} />
<button onClick={() => setResult('')}>Enviar</button>
</div>
</div>
</div>