Skip to content

Commit f37b97d

Browse files
authored
Move the list into another component (#8)
* Move the list into another component * Add pull request template
1 parent de48171 commit f37b97d

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Purpose
2+
The purpose of this PR is to fix #<issue-number>
3+
4+
## Goals
5+
<!--- Describe the solutions that this feature/fix will introduce to resolve the problems described above -->
6+
7+
## Screenshots
8+
<!--- Include an animated GIF or screenshot if the change affects the UI. -->

src/App.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,26 @@ const organisations = [
99
id: 6,
1010
name: "ODEL"
1111
}
12-
1312
]
1413

1514
function App() {
1615
return (
1716
<div className="App">
1817
<header className="App-header">
19-
{organisations.map((organisation) => {
20-
return (
21-
<div key={organisation.id}>
22-
{organisation.name}
23-
</div>
24-
);
25-
})
26-
}
18+
<Organisations />
2719
</header>
2820
</div>
2921
);
3022
}
3123

24+
function Organisations() {
25+
return organisations.map((organisation) => {
26+
return (
27+
<div key={organisation.id}>
28+
{organisation.name}
29+
</div>
30+
);
31+
})
32+
}
33+
3234
export default App;

0 commit comments

Comments
 (0)