報(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ǔ)法有問題么?環(huán)境:"react":"^16.9.0""react-router-dom":"^5.0.1"
react jsx語(yǔ)法報(bào)錯(cuò)求指導(dǎo)!
慕妹3146593
2019-09-13 10:12:35