03-render-conditionally-from-props: use const (#36551)
This commit is contained in:
@ -78,7 +78,7 @@ class GameOfChance extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
let expression = null; // change code here
|
const expression = null; // change code here
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<button onClick={this.handleClick}>Play Again</button>
|
<button onClick={this.handleClick}>Play Again</button>
|
||||||
|
Reference in New Issue
Block a user