title: Access state from render function
body: <p>So I need to run this line of code:</p>
  
  <pre><code>var vehicles = this.state.vehicles;
  </code></pre>
  
  <p>In the render function:</p>
  
  <pre><code>render: function(){...}
  </code></pre>
  
  <p>I currently get this error:</p>
  
  <blockquote>
    <p>Uncaught (in promise) TypeError: Cannot read property 'state' of
    undefined</p>
  </blockquote>
  
  <p>Even though this line works:</p>
  
  <pre><code>this.setState({vehicles: json})
  </code></pre>
  
  <p>This is also part of the code:</p>
  
  <pre><code>getInitialState: function(){
      this.render = this.render.bind(this)
      return {
        vehicles: []
      }
  }
  </code></pre>
  
  <p>How can I fix this error and access the data?</p>