react.DOM提供程序语法错误

时间:2017-11-19 13:57:17

标签: react-redux

我有这个问题:

   ./src/index.jsx中的错误          模块构建失败:SyntaxError:意外的令牌(20:2)

项目地址:https://github.com/mresulakyuz/React-Redux-Router-Webpack.git

 import React from 'react';
    import ReactDOM from 'react-dom';
    import { Provider } from 'react-redux';
    import { Router } from 'react-router-dom';
    import { createBrowserHistory } from 'history';
    const history = createBrowserHistory();

    import Sstore from './store/configureStore.js';
    import { loadMovies } from './actions/movieActions.js';
    import App from './App.js';


    const store = Sstore;

    store.dispatch(loadMovies());


    ReactDOM.render(

      <Provider store={store}>
        <Router history={history}>
          <App />
        </Router>
      </Provider>,
      document.getElementById('root')
    );

0 个答案:

没有答案