You should not use <Link> outside a

后端 未结 10 1698
既然无缘
既然无缘 2020-11-27 15:55

I\'m trying to set up react-router in an example application, and I\'m getting the following error:

You should not use  outside a 
         


        
10条回答
  •  渐次进展
    2020-11-27 16:17

    Write router in place of Main in render (last line in the code). Like this ReactDOM.render(router, document.getElementById('root'));

提交回复
热议问题