Site275 Documents

Component Placement

In runnable sites, place components under site/parts/shared when used across multiple pages. Place components used by one page under site/parts/${page}, where ${page} is the page directory name. No component may reside directly in site/parts.

Correct

site/parts/shared/button.jsx
site/parts/contact/form.jsx

Incorrect

site/parts/form.jsx

Fix

Move the component into site/parts/shared or the matching page directory under site/parts, and update its imports.