title: Putting a variable inside render() return - React Native
body: <p>I am <code>mapping</code> json data and can <code>console.log</code> my result, but I can't insert those values in the render.</p>
  
  <p>Here is the code I have for my render:</p>
  
  <pre><code>data_use = responseJson;
       const result_id = data_use.map(function(val) {
        return val.id;
      }).join(',');
      console.log(result_id);
  render(){
  return(
  
       &lt;View style = { styles.MainContainer }&gt;
        &lt;View&gt;
         &lt;Card&gt;          
            &lt;View&gt;
            &lt;Text&gt;{result_id}&lt;/Text&gt;
           &lt;/View&gt;
         &lt;/Card&gt;
         &lt;/View&gt;
       &lt;/View&gt;
     );
    }
  </code></pre>
  
  <p>The error that I am getting is <code>ReferenceError: result_id is not defined</code>. Which is odd because it is defined?</p>