title: Why are Arrow Functions in ReactJS considered as property?
body: <p>So, I've tried two different approaches as per need, i.e with Arrow Functions and Non-Arrow Functions, and while writing the code I noticed something odd about both of these, the non-arrow function i.e. </p>
  
  <pre><code>  close() {
      this.setState({
        show: false
      });
    }
  </code></pre>
  
  <p>are considered as method(s) which is true as they are functions,
  <a href="https://i.stack.imgur.com/Klpgk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Klpgk.png" alt="nonArrow"></a></p>
  
  <p>But when I write an Arrow function such as: </p>
  
  <pre><code>  goToNextPage = () =&gt; {
      this.setState(({ page }) =&gt; ({ page: page + 1 }));
    };
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/xm0wm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xm0wm.png" alt="property"></a></p>
  
  <p>It is considered a property, I quite do not understand this behavior. Is this something wrong with VSCode or it is an entirely different thing?</p>