Skip to content

Commit

Permalink
feat: add priventDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
int-tt committed Oct 21, 2019
1 parent a425880 commit 8b7cd49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.js
Expand Up @@ -11,7 +11,10 @@ function App() {
You'll get an email.
</p>
) : (
<form onSubmit={() => setSubmitted(true)}>
<form onSubmit={(event) => {
setSubmitted(true)
event.preventDefault()
}}>
<p>
A social network, <br />
Where you are the customer. <br />
Expand Down

0 comments on commit 8b7cd49

Please sign in to comment.