-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
built our first functional component
- Loading branch information
1 parent
3953d53
commit a18ea06
Showing
4 changed files
with
30 additions
and
15 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
|
||
const Header = () => { | ||
return ( | ||
<div className="header"> | ||
<h1>Bottega Madlibs</h1> | ||
<p>Fill out the fields below and click the generate button to see the Mad Lib story.</p> | ||
</div> | ||
) | ||
} | ||
|
||
export default Header; |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React, { Component } from 'react'; | ||
|
||
import Header from './header'; | ||
|
||
class Home extends Component { | ||
render() { | ||
return ( | ||
<div className="home"> | ||
{ Header() } | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Home; |