mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
* Don't use experimental syntax unless necessary * Edit another page * Update another page * Unrelated bikeshed on virtual DOM * Please, no *.jsx, we don't recommend it * Update faq-structure.md * Minor updates * Update faq-ajax.md * Update faq-functions.md * Add binding explanation
460 B
460 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, JS, and tests together inside folders grouped by feature or route.
FeatureA
index.js
ComponentA.js
ComponentA.css
ComponentA.test.js
Helper.js
Helper.test.js
FeatureB
index.js
ComponentB.js
ComponentB.test.js