鍍金池/ 問(wèn)答/Java  HTML/ react路由問(wèn)題,啟動(dòng)項(xiàng)目之后控制臺(tái)報(bào)了個(gè)警告

react路由問(wèn)題,啟動(dòng)項(xiàng)目之后控制臺(tái)報(bào)了個(gè)警告

warning.js?8a56:36 Warning: Failed context type: The context router is marked as required in AppContainer, but its value is undefined.

in AppContainer
回答
編輯回答
歆久

你應(yīng)該把所有的component寫(xiě)到router里面。不要在router外面有任何你的組件。

2017年11月5日 21:19