-
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.
165167323-bug(src/components): Add a folder for each component
- create a folder for each component - Everything related to the component is placed inside this folder i.e tests and styles. [Delivers #165167323]
- Loading branch information
novak
committed
Apr 8, 2019
1 parent
0a4773f
commit 1554c4e
Showing
2 changed files
with
16 additions
and
22 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,16 +1,12 @@ | ||
import React, { Component } from 'react'; | ||
import '../../App.css'; | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<p>WELCOME TO AUTHORS HAVEN</p> | ||
</header> | ||
</div> | ||
); | ||
} | ||
} | ||
const App = () => ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<p>WELCOME TO AUTHORS HAVEN</p> | ||
</header> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import React from 'react'; | ||
|
||
export default () => { | ||
return ( | ||
<div> | ||
<form> | ||
<input type="text" placeholder="Username" /> | ||
<input type="password" placeholder="Password" /> | ||
<button>Login</button> | ||
</form> | ||
</div> | ||
); | ||
}; | ||
export default () => ( | ||
<div> | ||
<form> | ||
<input type="text" placeholder="Username" /> | ||
<input type="password" placeholder="Password" /> | ||
<button>Login</button> | ||
</form> | ||
</div> | ||
); |