Skip to content

Commit 72590a8

Browse files
authored
Merge pull request #26 from software-tools-in-javascript/syntax
Using method syntax instead of fat arrow syntax
2 parents 2273e0e + 8bb3a0a commit 72590a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/capstone/front/app.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class App extends React.Component {
1818
}
1919
}
2020

21-
componentDidMount = () => {
21+
componentDidMount() {
2222
const url = `${this.baseUrl}/survey/stats`
2323
fetch(url).then((response) => {
2424
return response.json()
@@ -29,19 +29,19 @@ class App extends React.Component {
2929
})
3030
}
3131

32-
onStart = (start) => {
32+
onStart(start) {
3333
this.setState({
3434
start: start
3535
})
3636
}
3737

38-
onEnd = (end) => {
38+
onEnd(end) {
3939
this.setState({
4040
end: end
4141
})
4242
}
4343

44-
onNewRange = () => {
44+
onNewRange() {
4545
const params = {
4646
method: 'GET',
4747
headers: {
@@ -59,7 +59,7 @@ class App extends React.Component {
5959
})
6060
}
6161

62-
render = () => {
62+
render() {
6363
const tableStyle = {overflow: 'scroll', height: '200px'}
6464
return (
6565
<div>

0 commit comments

Comments
 (0)