Created
September 23, 2018 02:15
-
-
Save prof3ssorSt3v3/eee3a8856482deed9492f986856aa5b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import React, { Component } from 'react'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| import Story from './Story'; | |
| import NavMenu from './NavMenu'; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <div className="App"> | |
| <header className="App-header"> | |
| <img src={logo} className="App-logo" alt="logo" /> | |
| <h1 className="App-title">Welcome to React</h1> | |
| </header> | |
| <NavMenu /> | |
| <main> | |
| <Story storyTitle="The Hobbit" isbn={Date.now()/2} /> | |
| <Story storyTitle="Greens Eggs and Ham" isbn={Date.now()/3}/> | |
| <Story storyTitle="To Insult a Mockingbird" isbn={Date.now()/4}/> | |
| </main> | |
| </div> | |
| ); | |
| } | |
| } | |
| export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment