From 6f322a438a2e741b516f64d4b2dde28ea945d172 Mon Sep 17 00:00:00 2001
From: Paul Henschel <drcmda@gmail.com>
Date: Mon, 9 Mar 2020 19:30:53 +0100
Subject: [PATCH] Update conditional-rendering.md (#1175)

The ternary syntax using parenthesis was an unconventional prettier invention, going out of its way to format react ternaries differently from normal ternaries (if i remember correctly, because vim users had trouble re-formating without a mouse). If they made the right decision or not is one thing, but the additional noise could mislead beginners here, thinking they have to add more characters to make a simple 2-slot ternary, or that it is a "react thing".
---
 content/docs/conditional-rendering.md | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md
index 7df19bb9..10f09c67 100644
--- a/content/docs/conditional-rendering.md
+++ b/content/docs/conditional-rendering.md
@@ -176,11 +176,10 @@ render() {
   const isLoggedIn = this.state.isLoggedIn;
   return (
     <div>
-      {isLoggedIn ? (
-        <LogoutButton onClick={this.handleLogoutClick} />
-      ) : (
-        <LoginButton onClick={this.handleLoginClick} />
-      )}
+      {isLoggedIn
+        ? <LogoutButton onClick={this.handleLogoutClick} />
+        : <LoginButton onClick={this.handleLoginClick} />
+      }
     </div>
   );
 }