mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
468 B
468 B
id, title, permalink, layout, category
| id | title | permalink | layout | category |
|---|---|---|---|---|
| faq-structure | File Structure | docs/faq-structure.html | docs | 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