Skip to content

Commit

Permalink
Add functional components rule; add classnames rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Mar 10, 2022
1 parent 66c9c3a commit 91a0b06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/docs/8-Resources/developer-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ following practical guidelines.
- Use best practice naming conventions, follow the closed library style
(semantic-ui-less, semantic-ui-react).
- Configure editor to use Unix line endings (a must!).
- New components should be written as functional components, rather then class-based.

### Naming

Expand Down Expand Up @@ -117,6 +118,7 @@ import someImage from '@eeacms/volto-eea-design-system/../theme/assets/someFile.

- DRY. Code that is repeated, and in particular code that is closely situated,
is should be a target of this rule.
- Use the classnames package for classNames prop operations

## Storybook

Expand Down

0 comments on commit 91a0b06

Please sign in to comment.