Why React?
Building modern administrative interfaces in ProcessWire often leads to two problems: every module bundles its own copy of a JavaScript framework, and each module invents different styling, dark mode handling, keyboard shortcuts, and form controls.
React solves both problems by providing one shared, versioned UI runtime that every first-party and custom ProcessWire module consumes cleanly.
What React Standardizes Across Your Admin
Section titled “What React Standardizes Across Your Admin”| Challenge | Without a Shared Runtime | With trk/processwire-react |
|---|---|---|
| Bundle Weight | Each module ships its own React, router, and UI primitives | Single shared dist/ReactInertia.js (window.ReactWorkspaceRuntime) consumed by lean isolated module bundles |
| Admin vs Full-Screen Shell | Separate codebases for classic admin pages vs standalone apps | Dual-context ProcessReact renders identically inside classic ProcessWire Admin (shellMode: 'admin') or full-screen Workspace (?ws=1) |
| Dark Mode & Theming | Hardcoded colors that clash with ProcessWire AdminTheme | Centralized ThemeManager with 8 presets (native through teal + custom), --pw-* tokens, and per-user preferences |
| Form Controls & Media | Ad-hoc scripts per field | Unified <SchemaForm />, rwControl classic field upgrades, Media Studio, Polymorphic Links, 6,545 Vector Icons, Relations, and Tiptap |
| Security & Access Control | Custom AJAX endpoints with inconsistent CSRF checks | Unified /_react/* gateway with HMAC-SHA256 SignedTokenCodec, ProcessWire $session->CSRF, RBAC AccessGuard, and $config->demo protection |
| Accessibility | Inconsistent focus traps and keyboard handling | WCAG 2.1 AA primitives built on Base UI with consistent keyboard shortcuts (Cmd/Ctrl+K, Cmd/Ctrl+B, ?) |
Zero Boot Cost on Frontend Requests
Section titled “Zero Boot Cost on Frontend Requests”React is designed so visitor-facing frontend pages pay zero overhead. Companion Inputfields, Tiptap capability packs, calendar engines, and Workspace chrome load strictly on demand only on pages that render them, and downstream modules declare lazy 'reactCapabilities' instead of running eager autoload hooks.