Naming convention
In Javascript, - is usually avoided as ObjectKey or VariableName
In general, there are only 3 rules for special naming
| camelCase | UPPER_SNAKE_CASE | TitleCase | |
|---|---|---|---|
| Using on | Function | Constant | Class, |
| Examples in redux | action creators | actions | Scene, Component |
| Formattion | ${verb}${Noun} | ${NOUN}_${VERB} | ${Noun}${VerbBareInfinite} |
| Real-case | startLocationSearch() | LOCATION_SEARCH_START | LocationSearch.js |
Other than above cases, we are suggested to use small_snake
Reference
https://facebook.github.io/react/docs/jsx-in-depth.html\#user-defined-components-must-be-capitalized