Created
October 12, 2017 09:20
-
-
Save shabaz-ejaz/4f24d14ad0c32d12a4fc89533bb0ffc5 to your computer and use it in GitHub Desktop.
Nested map function
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
{item.typing_methods.map((method, methodIndex) => { | |
return method.unitsOfMeasurement.map((unit, unitIndex) => ( | |
<option value={unit.title}>{unit.title}</option> | |
)); | |
})} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment