File tree Expand file tree Collapse file tree 2 files changed +14
-21
lines changed Expand file tree Collapse file tree 2 files changed +14
-21
lines changed Original file line number Diff line number Diff line change 1
- import React , { Component } from 'react'
1
+ import React from 'react'
2
+
2
3
import logo from '../logo.svg'
3
4
import StarCount from './StarCount'
4
5
import TableOfContents from './TableOfContents'
5
6
import Section from './Section'
6
7
7
- class App extends Component {
8
- render ( ) {
9
- return (
10
- < div className = "App" >
11
- < header className = "App-header" >
12
- < StarCount />
13
- < img src = { logo } className = "App-logo" alt = "logo" />
14
- < h1 className = "App-title" > The GraphQL Guide</ h1 >
15
- </ header >
16
- < TableOfContents />
17
- < Section />
18
- </ div >
19
- )
20
- }
21
- }
22
-
23
- export default App
8
+ export default ( ) => (
9
+ < div className = "App" >
10
+ < header className = "App-header" >
11
+ < StarCount />
12
+ < img src = { logo } className = "App-logo" alt = "logo" />
13
+ < h1 className = "App-title" > The GraphQL Guide</ h1 >
14
+ </ header >
15
+ < TableOfContents />
16
+ < Section />
17
+ </ div >
18
+ )
Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ export default () => {
12
12
< h2 > Subtitle</ h2 >
13
13
</ header >
14
14
</ div >
15
- < div className = "Section-content" >
16
- { loading ? < Skeleton count = { 7 } /> : null }
17
- </ div >
15
+ < div className = "Section-content" > { loading && < Skeleton count = { 7 } /> } </ div >
18
16
</ section >
19
17
)
20
18
}
You can’t perform that action at this time.
0 commit comments