Camel case is the practice of writing phrases such that each word or abbreviation in the middle of the phrase begins with a capital letter, with no intervening spaces or punctuation. Common examples include "iPhone" and "eBay".
PascalCase is a naming convention in which the first letter of each word in a compound word is capitalized
Here's a curated list of packages that you should be at least familiar with before starting your awesome project. However, the best way to see a complete list of the dependencies is to check package.json
This is our starting point, which includes basic settings.
-
provider/server
: As the name suggests, this folder contains development and production server configuration.development.js
: contains development configurationproduction.js
: contains production configuration
-
provider/webpack
: This folder contains webpack configuration -
provider/setup
:Contains methods and additional operations of the provider section -
provider/setup
:
Here is where all the static files are stored. All the files in this folder will be accessible directly.
This is the body of our application. 90% of the expected goals of the app will be defined in this folder.
src/App
:src/Component
:src/Partial
:src/render
:Server
Template
client.js
src/setup
:Style
: this directory contains public styles.Utility
: this directory contains public javascript functions.Constant.js
: Here are constants.loacalStorage.js
: There are some datas that I went to set to browser's local storage at initial loading.Store.js
: There are the initial state and configs aboutTrim-Redux
.
There are Babel config, ESlint config, environmental variables for different modes and ... .
There are two kind of directories in RSSR.
An entity directory is any singular, identifiable and separate directory which grow subcomponent in a tree structure. ex: home.js, about.js etc.
It doesn't have Entity directory and isolated with their behavior, in fact to make project readable, they can hold different entities inside.
Note:
Wrap directory can be chaining like partial. It means component folders can be connected together in a graph structure.
__style
directory is used when two components have common style. It solves these rare issues by creating __style
in the first parent of that directory to handle duplicate style.
__action
directory is used when two components have common action. Create __action
in the first parent of that directory to handle duplicate action.
__component
is used when a component is the same in multiple containers, we can solve the issue by creating __Component
in the first parent of that directory to handle duplicate component.
Musts | Exceptions |
---|---|
1-Every entity in the App,Component and Partial must have a directory | App.js file in the App folder |
2-Any entity with more than one file must be defined as a Entity Directory(Modular tree structure) | Except for the js and css file until it doesn't reduce the readability of the project but also helps it |
3-The set of files and entities that have a specific definition must be defined as a Wrap Directory | Except for cases that include Entity Directory conditions |
trim-redux is a tool for simplifying working with the Redux in Reactjs. Trim-redux removed reducer, combineReducer and action in redux usage process and lets you work with redux like react component state!