What is the best folder structure for react apps?

This page summarizes the projects mentioned and recommended in the original post on /r/reactjs

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • bookshelf

    Build a ReactJS App workshop (by kentcdodds)

  • Keep your high-level screens in a folder called screens/pages. Reusable/lower level components in a separate folder (called components). Utils/shared folder for shared utlity functions/hooks etc. For tests, you can have a tests folder to store tests. Look at this repo for reference: https://github.com/kentcdodds/bookshelf

  • jira_clone

    A simplified Jira clone built with React/Babel (Client), and Node/TypeScript (API). Auto formatted with Prettier, tested with Cypress.

  • Another possible way is to structure your folders is to have one per feature/context, let's say Auth, Posts, Videos, Projects etc. You can then have everything related your feature in that folder: like Post.jsx, Post.test.jsx, styles.jsx and index.jsx as the entry point of the feature. Look at this repo for this sort of(-ish) approach: https://github.com/oldboyxx/jira_clone/tree/master/client

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to prevent login page from appearing on refresh? (+ refactoring)

    1 project | /r/reactjs | 10 Feb 2023
  • the road to become pro in react ?

    2 projects | /r/reactjs | 16 Dec 2022
  • Testing in React 17: setup and resources

    2 projects | dev.to | 22 Nov 2022
  • Dùng Profile để kiểm tra hiệu suất của React App

    1 project | dev.to | 23 May 2022
  • Best Way/Resource to Learn React

    1 project | /r/react | 29 Apr 2022