Sign in
Log inSign up

Is there any recommended file structure for React applications?

Sonu Sasankan's photo
Sonu Sasankan
·Oct 30, 2018

As we all know, having proper file structure and naming convention is really important in building Application. I am building a medium level application in react. I need to set up a proper file structure for that which allows us to move around our code with the least amount of effort. As a beginner this is a tough situation, so I have few questions about file structure and naming components. Can anyone give a clarification about these questions?

  • Which is the right way to structuring components and static pages and their CSS?

  • How to name components for better re usability?

  • Where do I can keep my application level states?

  • Where do I can use state-full components and stateless components?

  • Using redux for state management is mandatory?

  • Is Context API enough for application level state?

Please share the right information against this.

Thanks!

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct