Project Structure
Root Layout
reactwp-v3/
|-- configs/
|-- dist/
|-- docs/
`-- src/
configs/
configs/ contains the build system:
package.json- webpack configuration
- build scripts
- installed Node dependencies
See Build Tooling.
dist/
dist/ is the generated WordPress install.
This is the directory your local server should point to.
Treat it as build output. The project is normally authored in src/, not in dist/.
src/
src/ contains the editable project source:
src/core/for core-related project files such aswp-config.phpsrc/mu-plugins/for the shared ReactWP runtimesrc/plugins/for bundled standard pluginssrc/themes/for themes
Mu-Plugin Layout
The ReactWP mu-plugin is the application runtime.
Important areas include:
template/init.phptemplate/inc/runtime/template/inc/routes/template/inc/admin.phptemplate/inc/firstload.php
This is where the starter defines the bootstrap payload, route resolver, menu normalization, admin settings pages, and first boot behavior.
Bundled Plugin Layout
src/plugins/ contains opinionated environment plugins such as:
reactwp-frontendreactwp-imagesreactwp-backendreactwp-seoreactwp-accept-svgreactwp-acf-local-json
These plugins shape the starter defaults around frontend output, media handling, backend cleanup, SEO, SVG uploads, and ACF JSON storage.
Theme Layout
Inside the default theme:
js/inc/contains runtime codejs/inc/config/contains the intended project-level runtime overridesjs/components/contains reusable React componentsjs/templates/contains page templatesscss/contains styling source filestemplate/contains the PHP shell and theme hooksdatas/acf/stores ACF local JSON
Inside scss/, the project keeps the permanent base separate from template-owned screen styles so shipped starter visuals can be replaced without touching the runtime-safe base.
For the component layer, see Components.
Theme Runtime Layout
The runtime code in js/inc/ is intentionally split by responsibility:
Runtime.jsreads the bootstrap payloadLoader.jsowns first-load and critical asset preparationPageTransition.jsowns route transition animationRouteService.jsfetches and caches route payloadsTemplateRegistry.jsresolves lazy templatesScroller.jsowns the smooth scrolling layeruseRouteTransition.jscoordinates navigation, preload, swap, and reveal
PHP Theme Shell
The PHP theme shell lives mostly in:
template/header.phptemplate/footer.phptemplate/functions.php
Those files define:
- the shell markup IDs used by the runtime
- the bootstrap JSON script
- the initial loader node
- critical inline shell styles
- theme-level filters
Safe Runtime Configuration Files
Projects are expected to customize a few dedicated files instead of patching runtime internals directly:
js/inc/config/configureLoader.jsjs/inc/config/configurePageTransition.jsjs/inc/config/configureTemplateRegistry.js
Those files run after the starter restores its default runtime state, so a project can override behavior without rebuilding the runtime architecture first.