forked from benmvp/react-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
47 lines (43 loc) · 954 Bytes
/
Copy pathApp.js
File metadata and controls
47 lines (43 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import React, {PureComponent} from 'react';
import EmailList from './components/EmailList';
import EmailView from './components/EmailView';
import EmailForm from './components/EmailForm';
import './App.css';
const EMAILS = [
{
id: 1,
from: 'alittle0@chronoengine.com',
subject: 'Mauris lacinia sapien quis libero',
},
{
id: 2,
from: 'amurray1@mit.edu',
subject: 'Mauris ullamcorper purus sit amet nulla',
},
{
id: 3,
from: 'dmccoy2@bluehost.com',
subject: 'Suspendisse potenti',
},
{
id: 4,
from: 'raustin3@hexun.com',
subject: 'Maecenas rhoncus aliquam lacus',
},
{
id: 5,
from: 'rwagner4@instagram.com',
subject: 'Pellentesque ultrices mattis odi',
},
];
export default class App extends PureComponent {
render() {
return (
<main className="app">
<EmailList emails={EMAILS} />
<EmailView />
<EmailForm />
</main>
);
}
}