Skip to content

Instantly share code, notes, and snippets.

@sammylupt
Last active April 25, 2016 17:52
Show Gist options
  • Save sammylupt/cdf6fba482011f85e21f4aa82efd8026 to your computer and use it in GitHub Desktop.
Save sammylupt/cdf6fba482011f85e21f4aa82efd8026 to your computer and use it in GitHub Desktop.
// 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