現在React-Nativeの写経
をしているのですが、下記の</View>の2個下の行でエラーが出ます。
教材はES5で紹介されているのですが、react-native自体はes6をサポートしているので調べつつes6で書いているのですが、どのように変更すればOKなのか分からないため教えていただけると助かります。
javascript
1class weekdays extends Component { 2 render() { 3 return ( 4 <View style={styles.container}> 5 <Text> 6 Days of the week: 7 </Text> 8 {this.days()} 9 </View> 10 ); 11 }, 12 days() { 13 return DAYS.map(function(day){ 14 // Called 7 times, one for each day of the week 15 return <DayItem day={day} /> 16 }); 17 } 18} 19
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。