Skip to content

Commit 65aad70

Browse files
committed
Rewrite App class to function
1 parent 88b2ad4 commit 65aad70

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/components/App.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1+
import React from 'react'
2+
13
import '../assets/css/App.css'
2-
import React, { Component } from 'react'
34

4-
class App extends Component {
5-
render() {
6-
return (
7-
<div>
8-
<h1>Hello, Electron!</h1>
5+
function App() {
6+
return (
7+
<div>
8+
<h1>Hello, Electron!</h1>
99

10-
<p>I hope you enjoy using basic-electron-react-boilerplate to start your dev off right!</p>
11-
</div>
12-
)
13-
}
10+
<p>I hope you enjoy using basic-electron-react-boilerplate to start your dev off right!</p>
11+
</div>
12+
)
1413
}
1514

1615
export default App

0 commit comments

Comments
 (0)