Skip to content

Commit

Permalink
add id to count span
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
mocheng committed Jan 18, 2017
1 parent 0e4e390 commit 27cde47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion chapter-01/first_react_app/src/ClickCounter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ClickCounter extends Component {
<div style={counterStyle}>
<button onClick={this.onClickButton}>Click Me</button>
<div>
Click Count: {this.state.count}
Click Count: <span id="clickCount">{this.state.count}</span>
</div>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion chapter-01/first_react_app/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
//import App from './App';
import ClickCounter from './ClickCounter';
import './index.css';

Expand Down

0 comments on commit 27cde47

Please sign in to comment.