Skip to content

Commit 7ff3c4e

Browse files
authored
let -> const
1 parent 7afc1d4 commit 7ff3c4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: content/docs/conditional-rendering.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class LoginControl extends React.Component {
9393
render() {
9494
const isLoggedIn = this.state.isLoggedIn;
9595
96-
let button = isLoggedIn ? (
96+
const button = isLoggedIn ? (
9797
<LogoutButton onClick={this.handleLogoutClick} />
9898
) : (
9999
<LoginButton onClick={this.handleLoginClick} />

0 commit comments

Comments
 (0)