Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,37 @@ | ||
import React from 'react'; | ||
import logo from './logo.svg'; | ||
import React, { useState } from 'react'; | ||
// import logo from './logo.svg'; | ||
import './App.css'; | ||
|
||
function App() { | ||
return ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<img src={logo} className="App-logo" alt="logo" /> | ||
const [submitted, setSubmitted] = useState(false) | ||
const content = submitted ? ( | ||
<p> | ||
Thanks for joining in!<br /> | ||
When we're ready to wow you, <br /> | ||
You'll get an email. | ||
</p> | ||
) : ( | ||
<form onSubmit={() => setSubmitted(true)}> | ||
<p> | ||
Edit <code>src/App.js</code> and save to reload. | ||
</p> | ||
<a | ||
className="App-link" | ||
href="https://reactjs.org" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Learn React | ||
</a> | ||
</header> | ||
</div> | ||
); | ||
A social network, <br /> | ||
Where you are the customer. <br /> | ||
Ad free. Launching soon. | ||
</p> | ||
<label> | ||
Name: | ||
<input value='' /> | ||
</label> | ||
<label> | ||
Email: | ||
<input value='' /> | ||
</label> | ||
<button type="submit"> | ||
I'll vouch for that | ||
</button> | ||
</form> | ||
) | ||
|
||
return <div className="App">{content}</div> | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters