ScriptS
Reactiflux4y ago
4 replies
Script

✅ – Script – 09-54 Dec 16

What's the explanation for the difference between this two?
{people.map((data) => (
          <View key={data.key}>
            <Text style={styles.item}>{data.name}</Text>
          </View>
        ))}

{people.map((data) => {
          return (
            <View key={data.key}>
              <Text style={styles.item}>{data.name}</Text>
            </View>
          );
        })}
Was this page helpful?