Created
March 7, 2024 09:17
-
-
Save Beej126/28114aef95817491a18f2293cfc3d0a6 to your computer and use it in GitHub Desktop.
React iterate to generate elements sample
This file contains hidden or 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
<ul> | |
{[1, 2, 3, 4, 5].map(i => <li>{i}</li>)} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment