-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from gabrielsanttana/update-app
Update App.jsx from class component to functional component
- Loading branch information
Showing
1 changed file
with
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
import React, { Component } from 'react'; | ||
import React from 'react'; | ||
import './App.css'; | ||
import LinkButton from './components/LinkButton/LinkButton'; | ||
import Navbar from './components/Navbar/Navbar'; | ||
import CardsContainer from './components/ProjectList/CardsContainer'; | ||
import SocialShare from './components/SocialShare/SocialShare'; | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<Navbar /> | ||
<div className="App-header"> | ||
<h1>Make your first open source contribution in 5 minutes</h1> | ||
</div> | ||
<LinkButton /> | ||
<CardsContainer /> | ||
<SocialShare/> | ||
</div> | ||
); | ||
} | ||
const App = () => { | ||
return ( | ||
<div className="App"> | ||
<Navbar /> | ||
<div className="App-header"> | ||
<h1>Make your first open source contribution in 5 minutes</h1> | ||
</div> | ||
<LinkButton /> | ||
<CardsContainer /> | ||
<SocialShare/> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; |