Hahn-Solo Product Management
  • Dashboard
  • Technologies
  • Competitors
  • Tasks
Theme
Basic Information
Status
Open
Priority
Later
Category
Trending Feature
Repo
SCB PM
Effort
Moderate
Task ID
T-472AB3F4
Details
Evaluate React Compiler Integration
React Compiler 1.0 (stable since October 2025) eliminates manual `useMemo`/`useCallback`/`React.memo` usage. After the Next.js 16 upgrade, evaluate enabling `reactCompiler: true` in `next.config` for the starters. Run benchmarks to measure bundle size and runtime performance impact. If results are positive, enable by default in all starters.
Why
React Compiler is the most-anticipated React feature (62% developer excitement per State of React 2025 survey). Shipping starters with the compiler enabled positions Sitecore as a modern, performance-first framework consumer. Competitors' React-based SDKs will likely adopt this soon.
Evidence
React research report § Trends; State of React 2025 survey
Details
Context: React Compiler 1.0 shipped in October 2025 and is the most-anticipated React feature among developers (62% excitement in State of React 2025 survey). It eliminates the need for manual `useMemo`, `useCallback`, and `React.memo` usage by automatically optimizing re-renders at compile time. Next.js 16 supports the compiler via `reactCompiler: true` in `next.config`. None of the starters currently enable it.

Steps:
1. Complete the Next.js 16 upgrade first.
2. In one starter (suggest `basic-nextjs` for simplicity), add `reactCompiler: true` to `next.config`.
3. Run `npm run build` and verify no compilation errors.
4. Run the test suite and verify no behavioral changes.
5. Measure bundle size before and after with `next build --profile`.
6. If results are positive, enable in all starters.

Acceptance criteria:
React Compiler evaluated with documented results (bundle size, build time, runtime perf)
Decision made: enable by default or defer with documented reasoning
If enabled, all starters have `reactCompiler: true`

Risks: React Compiler may not correctly optimize all component patterns, especially those with complex side effects or dynamic imports. The Sitecore component map pattern needs specific validation.
Source Report
reports/product-management/scb/2026-04-05-scb-pm.md
Report date: Apr 5, 2026