Skip to content

Commit a2e445b

Browse files
authored
Prettier
1 parent d1e8b52 commit a2e445b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

content/docs/conditional-rendering.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ class LoginControl extends React.Component {
9292
9393
render() {
9494
const isLoggedIn = this.state.isLoggedIn;
95-
96-
let button = isLoggedIn
97-
? <LogoutButton onClick={this.handleLogoutClick} />
98-
: <LoginButton onClick={this.handleLoginClick} />;
95+
96+
let button = isLoggedIn ? (
97+
<LogoutButton onClick={this.handleLogoutClick} />
98+
) : (
99+
<LoginButton onClick={this.handleLoginClick} />
100+
);
99101
100102
return (
101103
<div>

0 commit comments

Comments
 (0)