title: Computed property reactive to window.innerwidth in VueJS
body: <p>Basically, what I need is a computed property that returns <code>true</code> when the <code>window.innerwidth</code> is equal or lower than 768px and <code>false</code> when it's higher than 768px.</p>
  
  <p>What I did:</p>
  
  <pre><code>computed: {
    isMobile() {
      if (window.innerWidth &lt;= 768) {
        return true
      } 
      return false
    }
  }
  </code></pre>
  
  <p>But that computes that property only once, and if I resize the window later, it doesn't react to that change. What can I do?</p>