Browse Source

Prettier

main
Alex Krolick 7 years ago
committed by GitHub
parent
commit
a2e445b85b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      content/docs/conditional-rendering.md

10
content/docs/conditional-rendering.md

@ -92,10 +92,12 @@ class LoginControl extends React.Component {
render() { render() {
const isLoggedIn = this.state.isLoggedIn; const isLoggedIn = this.state.isLoggedIn;
let button = isLoggedIn let button = isLoggedIn ? (
? <LogoutButton onClick={this.handleLogoutClick} /> <LogoutButton onClick={this.handleLogoutClick} />
: <LoginButton onClick={this.handleLoginClick} />; ) : (
<LoginButton onClick={this.handleLoginClick} />
);
return ( return (
<div> <div>

Loading…
Cancel
Save