報(bào)錯(cuò)Unexpectedtoken,expected","JSX代碼render(){constrouteInfo={'news':[{name:'國(guó)內(nèi)新聞',path:'china',component:'China'},{name:'國(guó)外新聞',path:'world',component:'World'}];return(({Object.entries(routeInfo).map(([p,r],index1)=>{return(({r.map((i,index2)=>())})}/>)})})}/>)}我的哪里的語(yǔ)法有問(wèn)題么?環(huán)境:"react":"^16.9.0""react-router-dom":"^5.0.1"
新手上路,react jsx語(yǔ)法報(bào)錯(cuò)大佬們有什么好的建議?
慕森王
2019-10-08 12:51:01