报错Unexpectedtoken,expected","JSX代码render(){constrouteInfo={'news':[{name:'国内新闻',path:'china',component:'China'},{name:'国外新闻',path:'world',component:'World'}];return(( {Object.entries(routeInfo).map(([p,r],index1)=>{return(( {r.map((i,index2)=>())})}/>)})})}/>)}我的哪里的语法有问题么?环境:"react":"^16.9.0""react-router-dom":"^5.0.1"
墨色风雨
相关分类