Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,26 @@ function Home() {
);
}

{/* write an <About> component here */}

// Define the About component here (only once!)
function About() {
return (
<div id="about">
<h2>About</h2>
</div>
);
}

function App() {
return (
<div>
<div className="App"> {/* It's good practice to have a main div with a class or id */}
<NavBar />
{/* add the <Home> component here */}
{/* add your <About> component here */}
{/* Add the <Home> component here */}
<Home />
{/* Add your <About> component here */}
<About />
</div>
);
}

export default App;
// This should be at the very end of the file, only once.
export default App;