-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathapp.js
More file actions
28 lines (27 loc) · 768 Bytes
/
Copy pathapp.js
File metadata and controls
28 lines (27 loc) · 768 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
--- a/app.js
@@ -10,25 +10,7 @@
render() {
return (
- <div style={{ backgroundColor: 'blue', color: 'white', padding: '10px' }}>
- <h1>Welcome to My App</h1>
- <p>This is a paragraph.</p>
- </div>
+ <div className="app-container">
+ <h1>Welcome to My App</h1>
+ <p>This is a paragraph.</p>
+ </div>
);
}
}
-export default class App extends React.Component {
- render() {
- return (
- <div style={{ backgroundColor: 'blue', color: 'white', padding: '10px' }}>
- <h1>Welcome to My App</h1>
- <p>This is a paragraph.</p>
- </div>
- );
- }
-}
-
-export default App;