简体   繁体   English

类型错误:国家。map 不是 function

[英]TypeError: countries.map is not a function

19 | 19 | return ( 20 | 21 | handleCountryChange(e.target.value)}>返回 ( 20 | 21 | handleCountryChange(e.target.value)}>

22 | 22 | Global |全球 | ^ 23 | ^ 23 | {countries.map((country, i) => {country})} 24 | {countries.map((country, i) => {country})} 24 | 25 | 25 |

19 | 19 | return ( 20 | 21 | handleCountryChange(e.target.value)}>返回 ( 20 | 21 | handleCountryChange(e.target.value)}>

22 | 22 | Global |全球 | ^ 23 | ^ 23 | {countries.map((country, i) => {country})} 24 | {countries.map((country, i) => {country})} 24 | 25 | 25 |

19 | 19 | return ( 20 | 21 | handleCountryChange(e.target.value)}>返回 ( 20 | 21 | handleCountryChange(e.target.value)}>

22 | 22 | Global |全球 | ^ 23 | ^ 23 | {countries.map((country, i) => {country})} 24 | {countries.map((country, i) => {country})} 24 | 25 | 25 |

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM