Skip to content

Commit

Permalink
added code suggestions for folder naming
Browse files Browse the repository at this point in the history
  • Loading branch information
gnanasai5111 authored and actions-user committed Aug 12, 2022
1 parent 4e2145b commit 7bdde30
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ This style guide is mostly based on the standards that are currently prevalent i
}
```

```filenames in React
// bad
header.jsx
//good
Header.jsx
```filenames in Javascript
//good
header.js
And if you don’t have state or refs, prefer normal functions (not arrow functions) over classes:
```jsx
Expand Down

0 comments on commit 7bdde30

Please sign in to comment.