Skip to content

Commit d723c7e

Browse files
authored
Merge pull request #1 from gnanasai5111/dev
added code suggestions for folder naming
2 parents c59af3a + 426959b commit d723c7e

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)