Fix Ticker. Left over from the good old Class days
😄
This commit is contained in:
committed by
GitHub
parent
ab10738ba9
commit
f0e08e93c7
@ -26,9 +26,9 @@ function Ticker(props) {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<span style={{ fontSize: 100 }}>{this.state.ticker}</span>
|
||||
<button onClick={this.tick}>Tick!</button>
|
||||
<button onClick={this.reset}>Reset</button>
|
||||
<span style={{ fontSize: 100 }}>{ticker}</span>
|
||||
<button onClick={tick}>Tick!</button>
|
||||
<button onClick={reset}>Reset</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user