Skip to content

Commit 7bdde30

Browse files
gnanasai5111actions-user
authored andcommitted
added code suggestions for folder naming
1 parent 4e2145b commit 7bdde30

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

react/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ This style guide is mostly based on the standards that are currently prevalent i
5555
}
5656
```
5757

58+
```filenames in React
59+
// bad
60+
header.jsx
61+
62+
//good
63+
Header.jsx
64+
65+
66+
```filenames in Javascript
67+
//good
68+
header.js
69+
5870
And if you don’t have state or refs, prefer normal functions (not arrow functions) over classes:
5971

6072
```jsx

0 commit comments

Comments
 (0)