Skip to content

Commit

Permalink
165167323-bug(src/components): Add a folder for each component
Browse files Browse the repository at this point in the history
 - 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
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
18 changes: 7 additions & 11 deletions src/components/Home/Home.js
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;
20 changes: 9 additions & 11 deletions src/components/Login/Login.js
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>
);

0 comments on commit 1554c4e

Please sign in to comment.