Skip to content

Commit c5be852

Browse files
committed
improve import statement
1 parent 88910c4 commit c5be852

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

hello.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react';
1+
import React,{Component} from 'react';
22

3-
class Hello extends React.Component {
4-
render() {
5-
return (<div>
6-
<h1>Hello world</h1>
7-
</div>)
8-
}
3+
class Hello extends Component {
4+
render() {
5+
return <div>
6+
<h1>Hello world</h1>
7+
</div>;
8+
}
99
}
1010

1111
export default Hello;

0 commit comments

Comments
 (0)