{arrayData.map(d => {
return (<Text>{d.element_key}</Text>);
})}
data.forEach(
function(d){
forEachData += '<li>' + d.name + '</li>'
}
)
buttonsListArr = initialArr.map(buttonInfo => (
<Button ... key={buttonInfo[0]}>{buttonInfo[1]}</Button>
);
{
countryCodes.map(
({name,code,emoji}): React.ReactElement<any> => {
return (
<Picker.Item label={emoji+' '+name} value={code} key={name} />
);
},
)
}
use this in jsx anywhere use want to use