when i refresh, on receiving data with history.push with useEffect hook and the data is set to undefined

前端 未结 0 683
孤城傲影
孤城傲影 2020-12-21 13:12

Base component:

const page = (e,index) => {
  console.log(e.img1)
    history.push({
      pathname: `${\'/learning/tut_\' + index}`,
      data: e.img1
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题