Files
react.dev/content/docs/faq-structure.md
Alex Krolick e9b132a280 Add FAQ pages
2017-11-12 19:25:43 -08:00

26 lines
468 B
Markdown

---
id: faq-structure
title: File Structure
permalink: docs/faq-structure.html
layout: docs
category: FAQ
---
### Is there a recommended way to structure React projects?
One common way to structure projects is locate CSS, JSX, and tests together inside folders grouped by feature or route.
```
FeatureA
index.jsx
ComponentA.jsx
ComponentA.scss
ComponentA.test.js
Helper.jsx
Helper.test.js
FeatureB
index.jsx
ComponentB.jsx
ComponentB.test.jsx
```