Skip to content

Instantly share code, notes, and snippets.

@bernardodiasc
Created February 7, 2017 21:19
Show Gist options
  • Save bernardodiasc/a1a46c175949a6a78047d918e61b6728 to your computer and use it in GitHub Desktop.
Save bernardodiasc/a1a46c175949a6a78047d918e61b6728 to your computer and use it in GitHub Desktop.

What takes (sort of) to have React+Redux SPA setup:

// This is used in a SPA setup using react and redux
import matchRoutes from 'react-router/lib/matchRoutes';
import { createRoutes } from 'react-router';
import { routerReducer } from 'react-router-redux';
import { Route, IndexRoute } from 'react-router';
import { useRouterHistory } from 'react-router';
import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import { withRouter } from 'react-router';
// Used only once in the <AppLink /> component
import { Link } from 'react-router';
// Used in actions
import { push } from 'react-router-redux';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment