mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
26 lines
468 B
Markdown
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
|
|
```
|