Cannot read property ‘params’ of undefined (React Router 4)

后端 未结 6 590
甜味超标
甜味超标 2020-12-29 04:49

I have a route set up to render a component:



        
6条回答
  •  有刺的猬
    2020-12-29 05:21

    Because you don't pass any match property to PageStart. You give it a key but no match. Try this:

     (
            
        )} 
    />
    

提交回复
热议问题