Skip to content

Commit 48f4b78

Browse files
committed
backend http api '/hello' removed
1 parent 720690c commit 48f4b78

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/components/Header/Header.component.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,12 @@ import superagent from 'superagent';
44

55
export default class Header extends React.Component {
66

7-
constructor(props){
8-
super(props);
9-
this.state = { heading: '' };
10-
}
11-
12-
componentWillMount(){
13-
superagent
14-
.get('/api/hello')
15-
.end((err, res) => {
16-
this.setState({
17-
heading: res.body.msg
18-
});
19-
});
20-
}
21-
227
render(){
238
return (
249
<div className="container">
2510
<div className="row">
2611
<h1 className="col-sm-6 col-sm-offset-3 well well-lg text-center">
27-
{this.state.heading}
12+
React-Redux-Scaffold
2813
</h1>
2914
</div>
3015
<h1 className="page-header">

0 commit comments

Comments
 (0)