The folder structure of the JS files reflects how Redux works, so if you are not familiar with Redux check out the official documentation.
-
actions
: Actions get dispatched with this/these utility module(s) -
components
: The main JS folder. All your React components should be in this folder, for big projects they might be grouped into seperate subfolders. E.g. a navigation componentNav.react.js
-
components/pages
: Actual pages (routes) users can visit. -
constants
: Action constants need to be defined in this/these utility module(s) -
reducers
: Reducers manage the state of an app, basically a simplified implementation of Stores in Flux. For an introduction to reducers, watch this talk by @gaearon. -
app.js
: The entry point of the application. Mostly setup and boilerplate code. Routes are configured in the JSX here!