我知道这已经被问了好几次了,但是(再次)我已经尝试过很多次了。
我使用ReactJS.NET进行服务器端呈现和反应路由器。
这就是我的App.jsx的样子
import ListPage from './pages/ListPage/ListPage.jsx';
<Route
path="/list" component={ListPage}
/>
如果我试图单击该路径的按钮,就会得到以下错误:
Uncaught Error: Element type is invalid: expected a string (for built-in