How Do SF Platform Architects Build Headless Salesforce Experiences with Multiple Frameworks?
Salesforce AI

How Do SF Platform Architects Build Headless Salesforce Experiences with Multiple Frameworks?

By Troy AmyettSeptember 12, 20263 min read
Book Intro Call
Back to Insights

SF Platform Architects build headless Salesforce experiences by exposing core data and logic through APIs and composing the frontend from multiple frameworks—React, LWC, Vue, or Angular—without tying the entire experience to any single one.

The Shift from Monolithic to Composable Frontends

Salesforce Platform Architects increasingly decouple the presentation layer from the Salesforce core. This allows teams to choose the right framework for each surface: LWC for internal apps where native integration matters most, React for customer-facing portals that need rapid iteration, and lighter frameworks for embedded widgets.

The pattern starts with a clear separation: Salesforce handles data, security, and business logic. The frontend consumes that logic via REST, GraphQL, or Platform Events and renders it in whatever technology stack the team prefers.

Core Architecture Patterns

Three production patterns dominate in 2026:

  1. API-first with framework-agnostic SDKs — Use Salesforce Platform SDKs or custom wrappers to abstract authentication and data access.
  2. Micro-frontend composition — Break the UI into independently deployable fragments served from a central shell.
  3. Embedded LWC + external React — Keep critical LWC components inside Salesforce while offloading complex customer experiences to a React application hosted outside.

Code Example: React App Consuming Salesforce Data

// React component using Salesforce REST API
import { useEffect, useState } from 'react';

function AccountList() {
  const [accounts, setAccounts] = useState([]);

  useEffect(() => {
    fetch('/services/data/v60.0/query/?q=SELECT+Name+FROM+Account', {
      headers: { Authorization: `Bearer ${token}` }
    })
      .then(res => res.json())
      .then(data => setAccounts(data.records));
  }, []);

  return (
    <ul>
      {accounts.map(acc => <li key={acc.Id}>{acc.Name}</li>)}
    </ul>
  );
}

The same data can be consumed by an LWC component using @wire or by a Vue app using the same REST endpoint.

Decision Framework

Use Case Recommended Framework Reason
Internal admin tools LWC Native performance and security
Customer self-service portals React Rich ecosystem and developer speed
Marketing landing pages Vue or React Lightweight and fast load times
Embedded widgets in Experience Cloud LWC Seamless styling and identity

Governance Checklist for Multi-Framework Headless Builds

  • Standardize authentication with a shared OAuth flow or JWT strategy.
  • Define a single source of truth for data contracts (OpenAPI specs or GraphQL schema).
  • Enforce consistent error handling and logging across frameworks.
  • Implement feature flags so any framework can be swapped without touching the core.
  • Maintain a shared component library for design-system consistency.

Common Pitfalls

Architects who treat LWC as the only option quickly hit framework lock-in. Teams that skip a shared design system end up with inconsistent UX. The most successful implementations start with a thin orchestration layer that all frameworks call.

Next Steps for SF Platform Architects

Evaluate your current Experience Cloud or Site.com implementation. Identify which surfaces would benefit from a different framework’s strengths. Start with a single micro-frontend experiment before scaling.


If you’re working out what this means for your own Salesforce org, book a working session and the Funnelists Team will map it against what you already have running.

Troy Amyett

Troy Amyett

Founder & Chief Solutions Architect

9x Salesforce certified. Agentforce Specialist and Agentblazer Legend, 2025–2026. Anthropic-certified in Claude Code and MCP.

Get Insights in your inbox

AI-powered perspectives on Salesforce and Agentforce, delivered weekly.

No spam. Unsubscribe anytime.

Ready to Put AI to Work?

Let's talk about what AI agents could do for your business. 30 minutes. No pitch deck. Just answers.

Book Intro Call