mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
03-render-conditionally-from-props: use const (#36551)
This commit is contained in:
parent
4ff5e6eff6
commit
01c8554adc
@ -78,7 +78,7 @@ class GameOfChance extends React.Component {
|
||||
});
|
||||
}
|
||||
render() {
|
||||
let expression = null; // change code here
|
||||
const expression = null; // change code here
|
||||
return (
|
||||
<div>
|
||||
<button onClick={this.handleClick}>Play Again</button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user