Skip to content

Instantly share code, notes, and snippets.

@hungdev
Created January 23, 2019 07:24
Show Gist options
  • Select an option

  • Save hungdev/e196902141932dbaaabc273ec5d2f0cc to your computer and use it in GitHub Desktop.

Select an option

Save hungdev/e196902141932dbaaabc273ec5d2f0cc to your computer and use it in GitHub Desktop.
table-example-reactrap
<Table responsive bordered>
  <thead style={{ textAlign: 'center' }}>
    <tr>
      <th>Rank</th>
      <th>Name</th>
      <th>Region</th>
      <th>Sales</th>
      <th>Achievement</th>
    </tr>
  </thead>
  <tbody style={{ textAlign: 'center' }}>
    {
      Array(10).fill(null).map((v, i) => (
        <tr key={i}>
          <td>{i + 1}</td>
          <td>Bella</td>
          <td>123</td>
          <td>F</td>
          <td>1988</td>
        </tr>
      ))
    }
  </tbody>
</Table> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment