So i wanted to learn react-redux with the help from tutorials by Wes Bos .
Everything was fine until i pushed to github and pulled into a remote server.
I thought it might be a node version issue. I was running on node ~v5 and the server was ~v6. So i changed back to v5 still got to issue.
import App from './components/app';
import Single from './components/Single';
import PhotoGrid from './components/PhotoGrid';
import { Router , Route , IndexRoute, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import store, { history } from './store';
const router = (
<Provider store={store}>
<Router history={history}>
<Route path="/" component={App}>
<IndexRoute component={PhotoGrid}></IndexRoute>
<Route path="/view/:postId" component={Single}/>
</Route>
</Router>
</Provider>
)
render(router,document.getElementById('root'));
So i get error "Unexpected token " for line 19 .
18 | const router = (
> 19 | <Provider store={store}>
I am not able to figure out what is the issue ? Is it issue with syntax or some libraries ? Any suggestion or help will be awesome.