Created
March 31, 2023 17:12
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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