Last active
July 30, 2024 01:37
-
-
Save samselikoff/7fa99992dbc5df5ecfd1ec721e64b86d to your computer and use it in GitHub Desktop.
VSCode snippet for creating a loop of n numbers in JSX! https://twitter.com/samselikoff/status/1611406980639244301
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
Show hidden characters
{ | |
"Range of numbers": { | |
"scope": "javascriptreact,typescriptreact", | |
"prefix": "range", | |
"body": [ | |
"{[...Array($1).keys()].map((i) => (", | |
" <$2 key={i}>", | |
" $3", | |
" </$2>", | |
"))}", | |
], | |
"description": "Create a loop of n numbers" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment