From 426959bf9291f0dcc0f7e62acb1e72037f6e3db5 Mon Sep 17 00:00:00 2001 From: gnanasai Date: Fri, 12 Aug 2022 12:28:44 +0530 Subject: [PATCH] added code suggestions for folder naming --- react/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/react/README.md b/react/README.md index 692f7975cf..82a2fb5459 100644 --- a/react/README.md +++ b/react/README.md @@ -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