Skip to content

Instantly share code, notes, and snippets.

Last active Nov 14, 2016
What would you like to do?
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import SoundCloud from 'soundcloud';
import {Router, browserHistory} from 'react-router'
import {syncHistoryWithStore} from 'react-router-redux'
import {configureStore} from './store';
import {CLIENT_ID, REDIRECT_URI} from './config';
import createRoutes from './routes';
client_id: CLIENT_ID,
redirect_uri: REDIRECT_URI
const store = configureStore();
const history = syncHistoryWithStore(browserHistory, store);
const routes = createRoutes();
<Provider store={store}>
<Router history={history} routes={routes} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment