Sunday, 5 May 2019

Is there an official style guide or naming convention for React based projects?

I'm setting up a React project with my team that will use mobX as state manager, plus TypeScript.

I've seen a common pattern in the casing and naming patterns in React Projects:

  1. Non-React Folders and Files: camelCase or kebab-case
  2. React (inside components folder): PascalCase

Is there a formal convention for folder/file naming in react? If not, is there a style guide on which this pattern is based? Or a reason why this one is used most of the times?



from Is there an official style guide or naming convention for React based projects?

No comments:

Post a Comment