title: Getting Json using Axios and iterating over data in ReactStrap Table
body: <p>I am trying to get data from <code>jsonplaceholder</code> via <code>axios</code> and iterate over that data and put that data into a reactstrap table. I am getting the error: <code>Expected an assignment or function call and instead saw an expression</code>. I'm not entirely sure what I am doing wrong here. Any help is greatly appreciated. </p>
  
  <p>Here is my code: </p>
  
  <pre><code>render() {
      const data = axios.get("https://jsonplaceholder.typicode.com/todos")
        .then(response =&gt;
          this.data = response.data,
          this.data.forEach((item) =&gt; {
            &lt;tr&gt;
              &lt;td&gt;{item.userId}&lt;/td&gt;
              &lt;td&gt;{item.id}&lt;/td&gt;
              &lt;td&gt;{item.title}&lt;/td&gt;
              &lt;td&gt;{item.completed}&lt;/td&gt;
            &lt;/tr&gt;
          })
        )
      return (
        &lt;div className="App"&gt;
          &lt;header className="App-header"&gt;
            &lt;Table&gt;
              &lt;thead&gt;
                &lt;tr&gt;
                  &lt;th&gt;
                    User ID
                  &lt;/th&gt;
                  &lt;th&gt;
                    ID
                  &lt;/th&gt;
                  &lt;th&gt;
                    Title
                  &lt;/th&gt;
                  &lt;th&gt;
                    Completed
                  &lt;/th&gt;
                &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                {
                  data
                }
              &lt;/tbody&gt;
            &lt;/Table&gt;
          &lt;/header&gt;
        &lt;/div&gt;
      );
    }
  }
  </code></pre>
  
  <p>The error is where I try to create the table row <code>&lt;tr&gt;</code> tags in my <code>data</code> variable.</p>