flexbox / react-native-bootcamp

1 week, 20+ lessons, opinionated React Native Bootcamp for busy developers.
https://davidl.fr/bootcamp
222 stars 12 forks source link

Issue with foundation-05 #162

Closed MatthysDev closed 1 year ago

MatthysDev commented 1 year ago

I find this exercise confusing because...this should be step 4

explain the difference between

// ✅ function with implicit return
const Item = ({ title }) => (
  <View>
    <Text>{title}</Text>
  </View>
);

// ✅ function normal return
const Item2 = ({ name }) => {
  console.log("file: StarshipFeedScreen.tsx:20 ~ Item2 ~ name", name);
  return (
    <View>
      <Text>{name}</Text>
    </View>
  );
};