-
Notifications
You must be signed in to change notification settings - Fork 4
[WIP] Create React Style Guide #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- accounts/ | ||
- components/ | ||
- pages/ | ||
- redux/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this Redux folder needed if we have core redux and a redux file inside the component itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the place where you define the actions/reducers/selectors for this specific feature folder. Not all of these are going to be implemented in the core folder because they can be feature-specific.
TODO | ||
|
||
# ??? | ||
What else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To define:
- subcomponents only used by one component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand what you mean.
|
||
When they are defined as `js` file, the file name should end with `Style.js`. | ||
|
||
In both cases, the file names should contain the component name and they should be `cameCased`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For scss files how do you feel about MyComponent.style.scss
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that having the scss
extension is obvious enough that it is a style file.
No description provided.