Skip to content

Instantly share code, notes, and snippets.

@shabaz-ejaz
Created October 12, 2017 09:20
Show Gist options
  • Save shabaz-ejaz/4f24d14ad0c32d12a4fc89533bb0ffc5 to your computer and use it in GitHub Desktop.
Save shabaz-ejaz/4f24d14ad0c32d12a4fc89533bb0ffc5 to your computer and use it in GitHub Desktop.
Nested map function
{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