Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 995 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 995 Bytes

js

Folder Structure

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 component Nav.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!