title: How to toggle a view based on a state in vuex?
body: <p>I have a button <code>&lt;Button&gt; Log me in! &lt;/Button&gt;</code>, and I would like to change its css class based on the state of my current vuex app. (<code>state.user</code> is not null)</p>
  
  <p>What is the proper way to write this code?</p>
  
  <p>I can create a field in the state that is the classname of this view and change that accordingly in actions/mutations. But are there better places that I should be placing this logic? As this field is completely component dependent, I don't think it should "leak" out to the global state.</p>