Redux React实现错误

时间:2017-07-12 09:27:33

标签: javascript react-router react-redux

嗨,在我的情况下,这里的解决方案不起作用我的代码:

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

0 个答案:

没有答案