JSFiddle - React, Tailwind, and code Playground

by luamelo

HTML

<div class="table-responsive">
  <table class="table user-list">
    <thead>
      <tr>
        <th><span>USUÁRIOS</span></th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><img src="https://bootdey.com/img/Content/user_1.jpg" alt="">Nome</td>
      </tr>
    </tbody>
  </table>
</div>

JavaScript

//Analisar o retorno JSON da API, e no loop montar a tabela com os users (avatar + nome);
/*DICA*/
//<tr><td><img src="'+data[i].avatar+'">'+data[i].first_name+' '+data[i].last_name+'</td></tr>

var api = 'https://reqres.in/api/users';