Skip to content

Commit 68a27d8

Browse files
committed
Docs: Minor tweaks to advanced/ExampleRedditAPI.md
Three changes: 1. Removed ```combineReducers``` from ```import``` statement under configureStore.js (combineReducers is not used there) 2. The file names listed on this page seem to indicate that reducers.js and actions.js are in the same directory, so I changed the relative path of the import statement in reducers.js to match this. (from ```"../actions"``` to ```"./actions"```). 3. Same issue as number 2 above: configureStore.js and reducers.js seem to be in the same directory, so I changed the relative path of the import statement in configureStore.js to match this (from ```"../reducers"``` to ```"./reducers"```).
1 parent 6d349be commit 68a27d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/advanced/ExampleRedditAPI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ import { combineReducers } from 'redux';
9898
import {
9999
SELECT_REDDIT, INVALIDATE_REDDIT,
100100
REQUEST_POSTS, RECEIVE_POSTS
101-
} from '../actions';
101+
} from './actions';
102102

103103
function selectedReddit(state = 'reactjs', action) {
104104
switch (action.type) {
@@ -162,10 +162,10 @@ export default rootReducer;
162162
#### `configureStore.js`
163163

164164
```js
165-
import { createStore, applyMiddleware, combineReducers } from 'redux';
165+
import { createStore, applyMiddleware } from 'redux';
166166
import thunkMiddleware from 'redux-thunk';
167167
import loggerMiddleware from 'redux-logger';
168-
import rootReducer from '../reducers';
168+
import rootReducer from './reducers';
169169

170170
const createStoreWithMiddleware = applyMiddleware(
171171
thunkMiddleware,

0 commit comments

Comments
 (0)