Browse Source

Merge pull request #198 from philipp-spiess/patch-1

Fix style inconsistency
main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
b30cdf6344
  1. 4
      src/templates/home.js

4
src/templates/home.js

@ -367,7 +367,7 @@ class Timer extends React.Component {
}
tick() {
this.setState((prevState) => ({
this.setState(prevState => ({
seconds: prevState.seconds + 1
}));
}
@ -432,7 +432,7 @@ class TodoApp extends React.Component {
text: this.state.text,
id: Date.now()
};
this.setState((prevState) => ({
this.setState(prevState => ({
items: prevState.items.concat(newItem),
text: ''
}));

Loading…
Cancel
Save