Ternary operator on style with React Js Es 6 : <p>I am trying to add the following ternary operator to show my button if I am logged in and If I am not to hide it. The following below keeps throwing me an error.</p>

<pre><code>&lt;img src={this.state.photo} alt="" style="{isLoggedIn ? 'display:' : 'display:none'}"  /&gt;
</code></pre>
