Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Created March 31, 2023 17:12
Show Gist options
  • Save shameemreza/2114bc18b8007e7d155e27f2f080a8dc to your computer and use it in GitHub Desktop.
Save shameemreza/2114bc18b8007e7d155e27f2f080a8dc to your computer and use it in GitHub Desktop.
Code for the "How to Render an Array of Objects in React?" Article.
table {
border-collapse: collapse;
width: 100%;
margin: 0 auto;
font-family: Arial, sans-serif;
}
thead th {
background-color: #5f9ea0;
color: white;
text-align: left;
padding: 10px;
}
tbody td {
border: 1px solid #ddd;
padding: 8px;
}
tbody tr:nth-child(even) {
background-color: #f2f2f2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment