Skip to content

Commit

Permalink
16.3. 이벤트에서 state 변경하기
Browse files Browse the repository at this point in the history
  • Loading branch information
egoing committed Apr 14, 2019
1 parent b4e7744 commit 35430ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ class App extends Component {
<h1><a href="/" onClick={function(e){
console.log(e);

This comment has been minimized.

Copy link
@jeongyj789

jeongyj789 Dec 30, 2019

abc

e.preventDefault();
}}>{this.state.subject.title}</a></h1>
//this.state.mode = 'welcome';
this.setState({
mode:'welcome'
});
}.bind(this)}>{this.state.subject.title}</a></h1>
{this.state.subject.sub}
</header>
<TOC data={this.state.contents}></TOC>
Expand Down

0 comments on commit 35430ae

Please sign in to comment.