This convention is intended to unify react project to a certain style and structure, thus making it more maintainable.
- Component file are capitalized. E.g.
App.js,Button.js - Folder are lowercased. E.g.
components,checkout,products - Files containing hooks, or helper functions, named using dash as separator. E.g.
use-list-api.js,use-modal-state.js,date-formatter.js - Tests files are suffixed with
.test.js, e.g.App.test.js