File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,9 @@ touch src/components/{Header,Content}.js
116
116
Now, let's write the two components in their respective file. First, the ` Header ` components in ` src/components/Header.js ` :
117
117
118
118
``` javascript
119
- import React , { Component } from ' react' ;
119
+ import React from ' react' ;
120
120
121
- class Header extends Component {
121
+ class Header extends React . Component {
122
122
render () {
123
123
return (
124
124
< div id= " header" >
@@ -132,9 +132,9 @@ class Header extends Component {
132
132
And now let's write the ` Content ` component in the ` src/components/Content.js ` file:
133
133
134
134
``` javascript
135
- import React , { Component } from ' react' ;
135
+ import React from ' react' ;
136
136
137
- class Content extends Component {
137
+ class Content extends React . Component {
138
138
render () {
139
139
return < p className= " App-intro" > Content goes here< / p> ;
140
140
}
You can’t perform that action at this time.
0 commit comments