Skip to content

Commit

Permalink
Merge pull request #1 from gnanasai5111/dev
Browse files Browse the repository at this point in the history
added code suggestions for folder naming
  • Loading branch information
gnanasai5111 authored Aug 12, 2022
2 parents c59af3a + 426959b commit d723c7e
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 d723c7e

Please sign in to comment.