Last active
April 25, 2016 17:52
-
-
Save sammylupt/cdf6fba482011f85e21f4aa82efd8026 to your computer and use it in GitHub Desktop.
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
// actions/index.js imports all actions from its directory and exports them | |
import * as accountActions from "./accountActions" | |
import * as cartActions from "./cartActions" | |
export { | |
accountActions, | |
cartActions | |
} | |
// index.js imports the index.js files from each of these directories, | |
// representing the combined exports of each of those folders | |
import actions from "./actions" | |
import constants from "./constants" | |
import reducers from "./reducers" | |
import utils from "./utils" | |
export { | |
actions, constants, reducers, utils | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment