嗨,在我的情况下,这里的解决方案不起作用我的代码:
index.js
import App from './App';
let store = createStore(App);
render(
<Provider store={store}>
<Router history={browserHistory}>
<Route path="/" name='Strona główna' component={App}>
<IndexRoute name='' component={Welcome}/>
<Route name='Dashboard' path="dashboard" component={ReatEstateList}/>
导入后 App.js 中的错误
Uncaught TypeError: Cannot call a class as a function