diff --git a/content/docs/conditional-rendering.md b/content/docs/conditional-rendering.md index 2112eed1..d858dbb6 100644 --- a/content/docs/conditional-rendering.md +++ b/content/docs/conditional-rendering.md @@ -92,10 +92,12 @@ class LoginControl extends React.Component { render() { const isLoggedIn = this.state.isLoggedIn; - - let button = isLoggedIn - ? - : ; + + let button = isLoggedIn ? ( + + ) : ( + + ); return (