This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
combineEpics | |
} from 'redux-observable'; | |
// Import feature wise epic | |
import common from './common/epics'; | |
import catalog from './catalog/epics'; | |
import home from './home/epics'; | |
import archives from './archives/epics'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File - src/index.js | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import registerServiceWorker from './registerServiceWorker'; | |
import { Provider } from 'react-redux'; | |
import { ConnectedRouter } from 'react-router-redux'; | |
// Import store and history | |
import store, { history } from './store'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
ajax | |
} from 'rxjs/observable/dom/ajax'; | |
import 'rxjs/add/operator/catch' | |
import 'rxjs/add/operator/debounceTime' | |
import queryString from 'query-string' | |
import { | |
Observable | |
} from 'rxjs/Observable'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/index.js | |
import createHistory from 'history/createBrowserHistory' | |
import { ConnectedRouter, routerReducer } from 'react-router-redux' | |
import { Route } from 'react-router' | |
import { Provider } from 'react-redux' | |
// Other imports ... | |
// Add the reducer to your store on the `router` key | |
// Also apply our middleware for navigating |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File- src/home/containers/UserRepos.js | |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux' | |
// Import dumb component | |
import Repo from '../components/Repo'; | |
// Actions | |
import { doUserRepos } from '../actions/doUserRepos'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ajax } from 'rxjs/observable/dom/ajax'; | |
import 'rxjs/add/operator/catch' | |
import { | |
REQUEST_USER_REPOS_START | |
} from '../actions/actionTypes'; | |
import { | |
doUserReposFulfilled, | |
doUserReposFailed | |
} from '../actions/doUserRepos'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class App extends Component { | |
handleClick = () => { | |
import ('./moduleA') | |
.then(({ | |
moduleA | |
}) => { | |
// Use moduleA | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
Route, | |
Switch | |
} from 'react-router'; | |
import Loadable from 'react-loadable'; | |
import AppLoader from './common/components/AppLoader'; | |
// Import modules/routes | |
import About from './about'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import{ | |
Grid, Row, Col, | |
FormGroup, ControlLabel | |
} from 'react-bootstrap'; | |
import { Field, reduxForm } from 'redux-form' | |
import { renderInputField, required, email } from 'utils/form-helpers' | |
let SettingsForm = props => { | |
const { handleSubmit, submitting } = props |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File - src/App.css | |
.App { | |
text-align: center; | |
} | |
.AppLogo { | |
height: 80px; | |
} |